Linux Interview questions:Experienced

0 comments

Experienced
what is DNS?
why we required CHROOT package? can you explain it?
What is the location for DHCP server default leased configs file?
what is the command and syntax to check DNS server named.conf file errors?
What is the command and syntax to check DNS server zone files config errors?
How do you update DNS zone file entries with out restarting named demon?
What are the services/demons will restart when you restart NFS service?
how do you update NFS sharing details with out restarting NFS server?
What are the advantages of NIS?
Can you explain me about LVM and how you configure LVM?
What is the difference between LVM1 and LVM2?
What is Amanda server and where is it used?
Can you explain me corntab?
How to resize LVM?
Can you explain me about RAID5?
How many RAID devices are there in RHEL5 by default?
Min how many Raid devices will participate in RAID5?
How do you do Kernel patching and what is the command?
Can you explain me about in details how you do kernel recompilation?
Can you explain what is the use fo access file in sendmail and what is its location?
Can you explain me what is the advantage of local-hosts file and virtusertable in sendmail?
How you will specify static IP's in DHCP server?
how do you update NIS users with out restarting the NIS server?
What is the partation no for LVM?
What is the partation no for RAID?
What is the port no for DNS?
Can we change default port no for DNS? if yes, how?
How many RAID device we can create in RHEL4?
Can you explain me Disk quota in detail and configuration details?
How to increase RAID devices after it excied max limit?

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Linux Interview Questions:Disk management

    0 comments

    Disk managamenent linux
    Click here for other interview questions

    1) How to creat swap if you dont have free partation?
    this is some what tricky question if you are new to Linux Administration
    here is the command to create swap if you dont have free partation
    before doing this you have switchoff the swap
    swapoff -a
    dd if=/dev/zero of=/root/swapfile bs=1k count=1024
    swapon filename

    2)How to see swap details?
       cat /proc/swap
       free

    3)How to see/get info about RAM in ur system
       free
       cat /proc/meminfo

    4)What is the difference between ext2 and ext3
      I)ext3=ext2+journaling
     "journaling" is an add-on to a filesystem that records changes as they are made.
    II)ext2 files system is fast
    III)less disk writes
    IV)ext2 file system in less stable/secure
    V)ext2 file system required to run fsck command if the system get crashed


    5)How to convert ext2 file system to ext3?
       tune2fs -j /dev/hda1


    6)How convert ext3 file system to ext2
       tune2fs -O^has-journal /dev/hda1


    7)What is default block/chunk size for PV
       4MB


    8)what is the command to update the diskquota on file system
       mount -o remount,rw /home

    9)What is the partation type number for swap,RAID,LVM?
       82(swap),fd(RAID),8e(LVM)


    10)What is the default block site for ext2,ext3,LVM,RAID?


    11)What is the difference between LVM1 and LVM2?



    12)What is difference between RAID0,1,5?

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Linux Interview Questions:Basic

    0 comments





    Basic linux interview questions
    1)How do you find out what’s your shell? - echo $SHELL
    2)What’s the command to find out today’s date? - date


    3)How do you find out the current directory you’re in? - pwd
    4)How do you find out your own username? - whoami/who am i
    5)How do you send a mail message to somebody? - mail surendra.anne@gmail.com -s ‘Your subject’ -c ‘test@gmail.com‘


    6)What’s the command to find out users on the system? - who/users
    7)How do you remove a file? - rm
    8)How do you remove a - rm -rf
    9)How do you count words, lines and characters in a file? - wc
    10)How do you search for a string inside a given file? - grep string filename


    11)How do you search for a string inside a directory? - grep string *
    12)How do you search for a string in a directory with the subdirectories recursed? - grep -r string *
    13)What are PIDs? - They are process IDs given to processes. A PID can vary from 0 to 65535.
    14)How do you list currently running process? - ps
    15)How do you stop a process? - kill pid


    16)How do you find out about all running processes? - ps -ag
    17)How do you stop all the processes, except the shell window? - kill 0
    18)How do you fire a process in the background? - ./process-name &
    19)How do you refer to the arguments passed to a shell script? - $1, $2 and so on. $0 is your script name.
    20)What’s the conditional statement in shell scripting? - if {condition} then … fi


    21)How do you do number comparison in shell scripts? - -eq, -ne, -lt, -le, -gt, -ge
    22)How do you test for file properties in shell scripts? - -s filename tells you if the file is not empty, -f filename tells you whether the argument is a file, and not a directory, -d filename tests if the argument is a directory, and not a file, -w filename tests for writeability, -r filename tests for readability, -x filename tests for excitability
    23)How do you do Boolean logic operators in shell scripting? - ! tests for logical not, -a tests for logical and, and -o tests for logical or.
    24)How do you find out the number of arguments passed to the shell script? - $#
    25)What’s a way to do multilevel if-else’s in shell scripting? - if {condition} then {statement} elif {condition} {statement} fi


    26)How do you write a for loop in shell? - for {variable name} in {list} do {statement} done
    27)How do you write a while loop in shell? - while {condition} do {statement} done
    28)How does a case statement look in shell scripts? - case {variable} in {possible-value-1}) {statement};; {possible-value-2}) {statement};; esac
    29)How do you read keyboard input in shell scripts? - read {variable-name}
    30)How do you define a function in a shell script? - function-name() { #some code here return }


    31)How does getopts command work? - The parameters to your script can be passed as -n 15 -x 20.Inside the script, you can iterate through the getopts array as while getopts n:x option, and the variable $option contains the value of the entered option.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here