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

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

Q18. In Unix , Which of the following calls never return error
(a) getpid
(b) fork
(c) ioctl
(d) open

Q19. Which of the following displays the exit status of the last executed command in Unix
(a) echo $#
(b) echo $$
(c) echo $?
(d) echo $!

Q20. In Unix , which of the following programs are not interactive
(a) passwd
(b) sh
(c) grep
(d) All of the above

Q21. Which one is not a main task of kernel
(a) Process management
(b) I/O management
(c) Memory management
(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

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

Q24. Linux operating system follows __________ type of kernel architecture
(a) Monolithic
(b) Micro
(c) Macro
(d) Hybrid

Q25. Which command is used to manage hard disk partitions in a Linux system
(a) df
(b) fdisk
(c) dd
(d) iostat

Q26. Which is not a system call in Unix
(a) Sleep()
(b) Fork()
(c) SetTimer()
(d) Chmod()

Q27. In unix which system call creates the new process
(a) Fork
(b) Create
(c) New
(d) None of the above

Q28. Which command is used to display the contents of a file in Linux
(a) rm
(b) cat
(c) wq
(d) ls

Q29. Which of the following is a Linux text editor
(a) Notepad
(b) Word
(c) Vi
(d) Notepad++

Q30. Which of the following is a Linux process management command
(a) pwd
(b) ps
(c) cd
(d) ls

1 2 3