Posts

25 Linux Interview Questions and Answers (Basic and Scenarios)

As the opportunities for linux jobs are increasing day by day , its very  adequate to start preparing for linux interviews. In this article we have presented, questions and answers in basic level and scenarios. More likely all questions are related to system administration. Basic Questions 1. What is initrd image and what is its function in the linux booting process ? The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available.The initrd is bound to the kernel and loaded as part of the kernel boot procedure. The kernel then mounts this initrd as part of the two-stage boot process to load the modules to make the real file systems available and get at the real root file system. Thus initrd image plays a vital role in linux booting process. 2. Explain the terms suid, sgid and sticky bit ? In addition to the basic file permissions in Linux, there are few special permissions that are available for executabl...

Basics of LDAP & OpenLDAP

LDAP - Lightweight Directory Access Protocol. OpenLDAP - Server which operates on LDAP for eg. Microsoft AD Directory Service - 1. Stores & organize information in directory i.e. in hierarchical manner and provides access to it 2. Eg. Domain Name System. DNS is a most successful implementation of Directory service over Internet Directory Structure - 1. Directory service stores information in Directory Structure. The diagram of Directory structure is called Directory Information Tree. 2. A Directory is a tree of Entries 3. An entry is set of attributes 4. An attribute is has a Name and one or more value 5. Attributes are Defined in Schema 6. Each entry has an Unique Identifier i.e. DN Five Major Characteristics of Directory Service - 1. Higly optimized for reads 2. Information can be stored in Distributed model 3. Can extend types of information to be stored 4. Replication 5. Advance search capabilities Difference between Databases and Directory Services S...

Shell (BASH) Scripting QuickStart Guide for Administrators

What is ShellScripting ? Shell scripting is used to automate certain tasks, make processes easy for user such as installation, monitor system resources, etc. Default linux shell is BASH -> Bourne Again Shell replacement for Bourne Shell. Written by Brian Fox. It is basically an interpretter, which interprete our commands and convert it into binary for CPU to understand. Bash also can read commands from file which is also called as Script. Script is nothing but a sequence of commands in a simple ASCII text How to write bash script ? There are various components in shellscript. Major components are as below:        1. Shebang Line      2. Variables       3. Statements      4. Loop      5. Functions      6. Regular Expressions Shebang Line: #!/bin/bash  --> Shebang line  Every shell script starts with this Sh...