41. | Which of the following set of Unix commands will always display “WELCOME” ? |
Discuss |
Answer: (c).title = WELCOME; export title ; sh –c “echo $title”
|
42. | Which of the following shell scripts will produce the output “my first script” ? |
Discuss |
Answer: (c).for i in my first script; do echo –i $i; done
|
43. | Which of the following statements is not true for UNIX Operating System ? |
Discuss |
Answer: (b).UNIX kernel uses modules with well specified interfaces and provides advantages like simplified testing and maintenance of kernel. It has better extensibility as the kernel is not monolithic.
|
44. | Consider the following UNIX command: sort < in > temp; head -30 < temp; rm temp Which of the following functions shall be performed by this command? |
Discuss |
Answer: (c).Sort, taking the input from "in" and writing the output to "temp" then prints 30 lines from temp on terminal. Finally "temp" is removed
|
45. | The mv command changes |
Discuss |
Answer: (c).the directory entry
|
46. | A UNIX file system has 1 KB block size and 4-byte disk addresses. What is the maximum file size if the inode contains ten direct block entries, one single indirect block entry, one double indirect block entry and one triple indirect block entry? |
Discuss |
Answer: (c).16 GB
|
47. | A user level process in Unix traps the signal sent on a Ctrl + C input and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl + C input is given to this process, what is the mode in which the signal handling routine executes ? |
Discuss |
Answer: (b).Kernel mode
|
48. | Which one of the following options is not a shell in UNIX system? |
Discuss |
Answer: (c).Net Shell
|
49. | Which command allows you to view your file 24 lines at a time ? |
Discuss |
Answer: (a).More
|
50. | The Unix command used to find out the number of characters in a file is |
Discuss |
Answer: (b).wc
|