Linux Interview Questions
Q16. In Unix ,the call pipe(p); is valid if p had been declared as
(a) int p
(b) int p[2]
(c) char *p
(d) FILE * p
Answer: (b) int p[2]
Q17. Which of the following metacharacters will be recognized by the shell , even if it comes within double quotes
(a) $
(b) ?
(c) *
(d) None of the above
Answer: (a) $
Q18. In Unix , Which of the following calls never return error
(a) getpid
(b) fork
(c) ioctl
(d) open
Answer: (a) getpid
Q19. Which of the following displays the exit status of the last executed command in Unix
(a) echo $#
(b) echo $$
(c) echo $?
(d) echo $!
Answer: (c) echo $?
Q20. In Unix , which of the following programs are not interactive
(a) passwd
(b) sh
(c) grep
(d) All of the above
Answer: (c) grep
Q21. Which one is not a main task of kernel
(a) Process management
(b) I/O management
(c) Memory management
(d) Hard disk management
Answer: (d) Hard disk management
Q22. Ext4 in Linux is a
(a) folder name
(b) file system name
(c) memory name
(d) None of the above
Answer: (b) file system name
Q23. What is a shell
(a) It is a hardware component
(b) It is a command interpreter
(c) It is a part in compiler
(d) It is a tool in CPU scheduling
Answer: (b) It is a command interpreter
Q24. Linux operating system follows __________ type of kernel architecture
(a) Monolithic
(b) Micro
(c) Macro
(d) Hybrid
Answer: (a) Monolithic
Q25. Which command is used to manage hard disk partitions in a Linux system
(a) df
(b) fdisk
(c) dd
(d) iostat
Answer: (b) fdisk
Q26. Which is not a system call in Unix
(a) Sleep()
(b) Fork()
(c) SetTimer()
(d) Chmod()
Answer: (c) SetTimer()
Q27. In unix which system call creates the new process
(a) Fork
(b) Create
(c) New
(d) None of the above
Answer: (a) Fork
Q28. Which command is used to display the contents of a file in Linux
(a) rm
(b) cat
(c) wq
(d) ls
Answer: (b) cat
Q29. Which of the following is a Linux text editor
(a) Notepad
(b) Word
(c) Vi
(d) Notepad++
Answer: (c) Vi
Q30. Which of the following is a Linux process management command
(a) pwd
(b) ps
(c) cd
(d) ls
Answer: (b) ps
Practice Test Exam