Site icon Freshershome

Important Unix Shell Questions

Some Important Unix Shell Questions for Recent Graduates to help them in their Interview Preparations.

  1. There can be multiple Kernels and shells running on your system. True or False?
  2. Why shell is called Command Interpreter?
  3. Two UNIX systems may or may not use the same system calls. True or False?
  4. To obtain help on any feature of the system, what are the possible help sources available?
  5. Why are the directories /bin and /usr/bin usually found first in the output of echo $PATH?
  6. If two commands with the same filename exist in two directories in PATH, how can they be executed.
  7. How is the Current directory is indicated in the value of the PATH?
  8. Use the type command with the following arguments—cd, date, pwd and ls. Which are the internal commands in the list?
  9. What is the difference between an argument and an option?
  10. if the command ls –all works on your system, which flavor of UNIX could you be using?
  11. What does the secondary prompt look like and when does it appear?
  12. You located the string crontab in a man page by searching with /crontab [Enter]. How do you find out the other occurrences of this string in the page?
  13. What is a pager? Name the two standard pagers used by man.
  14. If a command doesn’t seem to complete, which key will you press to interrupt it?
  15. Do you need to wait for a command to finish before entering the next one?
  16. What do the | and the three dots in the SYNOPSIS section of these man pages indicate as shown below?
    /usr/xpg4/bin/tail [ -f | -r ]
    
    /usr/bin/ls [ -aAbcCdfFgilLmnopqrRstux1 ] [file .. ]
  17. How do you direct man to use a specific pager, say less?
  18. What is a whitespace? Explain the treatment the shell metes out to a command that contains a lot of whitespace.
  19. A Program file named foo exists in the current directory, but when we try to execute it by entering foo, we see the message foo: command not found. Explain how that can happen?
  20. What do multiprogramming, multiuser and multitasking mean?
  21. Why are many UNIX commands designed to perform simple rather than complex tasks?
Exit mobile version