Unix Interview questions

Published on by LakshmiSaahul,Dhana Royal

Unix Interview questions

  1. Explain difference between IPC mechanisms?
  2. What type of scheduling is used in Unix?
  3. What is stty used for?
  4. How would you remove a semaphore / shared memory whose owner processes have died?
  5. Explain the unix file system?
  6. Give examples of how memory leaks can occur with c programs?
  7. What are the differences between Shared and Dynamic libraries?
  8. How would you create shared and dynamic libraries?
  9. How do you debug a core dump?
  10. If you want to migrate a 32 bit application to a 64 bit os, what all would you check?
  11. Create your own shell that completes the following problem: Ask the user their name, Compare it to your name and Give a reply that their response is either your name too or it is a nice name too ?
  12. What does fork() do?
  13. What's the difference between fork() and vfork()?
  14. Why use _exit rather than exit in the child branch of a fork?
  15. How are devices represented in UNIX?
  16. What is 'inode'?
  17. Brief about the directory representation in UNIX?
  18. What is a FIFO?
  19. Explain about the case statement?
  20. Explain the basic forms of each loop?
  21. Describe about awk and sed?
  22. Who helped you put this list together?
  23. When someone refers to 'rn(1)' or 'ctime(3)', what does the number in parentheses mean?
  24. What does {some strange unix command name} stand for?
  25. How does the gateway between "comp.unix.questions" and the "info-unix" mailing list work?
  26. What are some useful Unix or C books?
  27. What happened to the pronunciation list that used to be part of this document?
  28. How do I remove a file whose name begins with a "-" ?
  29. How do I remove a file with funny characters in the filename ?
  30. How do I get a recursive directory listing?
  31. How do I get the current directory into my prompt?
  32. How do I rename "*.foo" to "*.bar", or change file names to lowercase?
  33. Why do I get [some strange error message] when I "rsh host command" ?
  34. How do I {set an environment variable, change directory} inside a program or shell script and have that change affect my current shell?
  35. How do I redirect stdout and stderr separately in csh?
  36. How do I tell inside .cshrc if I'm a login shell?
  37. How do I construct a shell glob-pattern that matches all files except "." and ".." ?
  38. How do I find the creation time of a file?
  39. How do I ring the terminal bell during a shell script?
  40. How do I find the creation time of a file?
  41. How can a process detect if it's running in the background?
  42. Explain about signal argument?
  43. Explain about exec?
  44. Explain about trap command?
  45. Explain about sort command?
  46. Explain about the command overwrite?
  47. Explain about kill command?
  48. Explain about the shell variable IFS?
  49. Explain about the rules used in overwrite to preserve the arguments to the users command?
  50. Explain about @@@ lines?
  51. Is the function call to exit at the end of vis necessary?
  52. Explain about fgets?
  53. Explain about efopen page?
  54. Explain about yacc parser generator?
  55. What is the major advantage of a hash table?
  56. What are the techniques that you use to handle the collisions in hash tables?
  57. In Unix OS, what is the file server?
  58. What is NFS? What is its job?
  59. What is CVS? List some useful CVS commands?
  60. How do you debug a core dump?
  61. How would you create shared and dynamic libraries?
  62. What are the differences between Shared and Dynamic libraries?
  63. Give examples of how memory leaks can occur with c programs?
  64. Give examples of how memory leaks can occur with c programs?
  65. Explain the Unix file system?
  66. How would you remove a semaphore / shared memory whose owner processes have died?
  67. What is stty used for?
  68. What type of scheduling is used in Unix?
  69. Explain difference between IPC mechanisms?
  70. Construct pipes to execute the following jobs?
Advertising
To be informed of the latest articles, subscribe:
Comment on this post