21. | Unix command to change the case of first three lines of file “shortlist” from lower to upper |
Answer: (b).$ head-3 shortlist | tr ‘[a-z]’ ‘[A-Z]’
|
22. | Match the following vi commands in Unix: List-I List-II a. :w i. saves the file and quits editing mode b. :x ii. escapes unix shell c. :q iii. saves file and remains in editing mode d. :sh iv. quits editing mode and no changes are saved to the file Codes: a b c d |
Answer: (d).iii i iv ii
|
23. | The Unix Operating System Kernel maintains two key data structures related to processes, the process table and the user structure. Now, consider the following two statements: I. The process table is resident all the time and contain information needed for all processes, even those that are not currently in memory. II. The user structure is swapped or paged out when its associated process is not in memory, in order not to waste memory on information that is not needed. Which of the following options is correct with reference to above statements ? |
Answer: (c).Both (I) and (II) are correct
|
24. | Consider the following operations to be performed in Unix: “The pipe sorts all files in the current directory modified in the month of “June” by order of size and prints them to the terminal screen. The sort option skips ten fields then sorts the lines in numeric order.” Which of the following Unix command will perform above set of operations? |
Answer: (a).ls – l | grep “June” | sort + 10n
|
25. | Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX? I. It is used to set or change the priority of a process. II. A process’s nice value can be set at the time of creation. III. ‘nice’ takes a command line as an argument. |
Answer: (c).I, II, III
|
26. | In UNIX, processes that have finished execution but have not yet had their status collected are known as ................ |
Answer: (c).Zombie Processes
|
27. | In UNIX operating system, when a process creates a new process using the fork() system call, which of the following state is shared between the parent process and child process? |
Answer: (c).Shared memory segments
|
28. | Which of the following information about the UNIX file system is not correct? |
Answer: (c).Each i-node is 256-bytes long
|
29. | Which of the following option with reference to UNIX operating system is not correct? |
Answer: (d).KILL is a blockable signal.
|
30. | What is the function of following UNIX command? WC – l < a >b& |
Answer: (b).It runs the word count program to count the number of lines in its input, a, writing the result to b, but does it in the background.
|