Interview questions of Unix

August 8, 2016 by Arti Khedkar

Filed under Unix

Last modified August 8, 2016

Interview questions of Unix

  1. What is UNIX?
  2. What are filters?
  3. What is a typical syntax being followed when issuing commands in shell?
  4. Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
  5. What is the chief difference between the –v and –x option s to set?
  6. What is Kernel?
  7. What is Shell?
  8. How to remove the footer from a file?
  9. Write a command to find the length of a line in a file?
  10. How to get the nth word of a line in Unix?
  11. How to reverse a string in unix?
  12. How to get the last word from a line in Unix file?
  13. How to replace the n-th line in a file with a new line in Unix?
  14. How to check if the last command was successful in Unix?
  15. Write command to list all the links from a directory?
  16. How will you find which operating system your system is running on in UNIX?
  17. Create a read-only file in your home directory?
  18. How do you see command line history in UNIX?
  19. How do you know if a remote host is alive or not?
  20. How do you see command line history in UNIX?
  21. How do you copy file from one host to other?
  22. How do you find which process is taking how much CPU?
  23. How do you check how much space left in current drive?
  24. What is the difference between Swapping and Paging?
  25. What is “chmod” command?
  26. What do you understand by this line “r– -w- –x?
  27. Differentiate relative path from absolute path
  28. Explain the importance of directories in a UNIX system
  29. Briefly describe the Shell’s responsibilities
  30. What are shell variables?
  31. What are the differences among a system call, a library function, and a UNIX command?
  32. What is Bash Shell?
  33. Enumerate some of the most commonly used network commands in UNIX
  34. Differentiate cmp command from diff command
  35. What is the use of -l when listing a directory?
  36. What is piping
  37. What is a superuser?
  38. Is it possible to see information about a process while it is being executed?
  39. What is the standard convention being followed when naming files in UNIX?
  40. Why is it that it is not advisable to use root as the default login?
  41. What is the use of the tee command?
  42. Differentiate cat command from more command
  43. What is parsing?
  44. What is pid?
  45. How does the system know where one command ends and another begins?
  46. What is wild-card interpretation?
  47. What is the output of this command?
  48. How do you switch from any user type to a super user type?
  49. What would be the effect of changing the value of PATH to:
    .:/usr/della/bin: /bin: /usr/bin
  50. Write a command that will display files in the current directory, in a colored, long format
  51. Write a command that will find all text files in a directory such that it does not contain the word “amazing” in any form (that is, it must include the words Amazing, AMAZING, or aMAZINg)
  52. Write a command that will output the sorted contents of a file named IN.TXT and place the output in another file named OUT.TXT, while at the same time excluding duplicate entries
  53. Write a command that will allow a UNIX system to shut down in 15 minutes, after which it will perform a reboot.
  54. What command will change your prompt to MYPROMPT: ?
  55. What does this command do? cat food 1 > kitty
  56. What is wrong with this interactive shell script?
  57. What is nohup in UNIX?
  58. What is ephemeral port in UNIX?
  59. How will you check how many rows inserted into every second?
  60. There is a file Unix_Test.txt which contains words Unix, how will you replace all Unix to UNIX?

Leave a Comment