Placement Papers & Technical Interview Questions

 

Chennai Home > Placement Papers > Unix / Linux

General Unix Interview Questions

  1. What are the main differences between Apache 1.x and 2.x?
  2. What does the “route” command do?
  3. What are the read/write/execute bits on a directory mean?   Ans: /bin - would contains the binaries frequently used by the normal user (as well as system administrator)
    /usr/bin - would contains the binaries rarely used by the normal user (as wel as system administrator)

  1. What does iostat do?
  2. what does vmstat do?
  3. What does netstat do?
  4. What is the most graceful way to bring a system into single user mode?
  5. How do you determine disk usage?                                       Ans :The disk usage can be determined by using the command,du.This command outputs the number of kilobytes used by each sub-directory.
  6. What is AWK?                                                                     Ans :AWK is a complete pattern scanning and processing language, it is most commonly used as a Unix command-line filter to reformat the output of other commands.

    For example, to print only the second and sixth fields of the date command (the month and year) with a space separating them, at the Unix prompt, you would enter:
    date | awk ‘{print $2 ” ” $6}’
     
  7. What is SED?                                                                      Ans :SED (which stands for Stream EDitor) is a simple but powerful computer program used to apply various pre-specified textual transformations to a sequential stream of text data.

    It reads input files line by line, edits each line according to rules specified in its simple language (the sed script), and then outputs the line.
     
  8. What is the difference between binaries in /bin, and /usr/bin?
  9. What is a dynamically linked file?                                        Ans: Soft link (created with ln -s). Source and destination files will have the different inode. If dest removed source will be available. If source removed dest also will available but no where to go.

     
  10. What is a statically linked file?                                       Ans:Hard link (created with ln). Source and dest will have the same inode. Making two different copies causes more disk space due to redundancy.
 

 

© 2006 SpiritOfChennai.com All Rights Reserved Privacy Policy