1. Which command is used to extract specific columns from the file?
Correct : A. cut
2. Which command is used with vi editor to move the cursor to the left?
Correct : D. h
3. Which command is used to create a directory?
Correct : B. mkdir
4. Which of the following changes permission to deny write permission to group and others?
Correct : A. chmod go-w filex
5. Which command is used with vi editor to delete a single character?
Correct : D. x
6. The tar command in UNIX
Correct : C. both a and b
7. Which command is used to sort the lines of data in a file in reverse order
Correct : D. sort -r
8. Which of the following commands is used to rename a file?
Correct : B. mv
9. Which command is used to display a file contents in octal form?
Correct : C. od
10. Which of the following commands is used to count the total number of lines,words and characters contained in a file?
Correct : C. wc
11. The cc command makes a total of
Correct : D. 5 pass
12. Which of the following commands is used for an automatic remainder service?
Correct : B. calender
13. The Unix command used to find out the number of characters in a file is
Correct : B. wc
14. In a system ,if 5 people are currently using vi editor ,then the number of corresponding processes will be
Correct : B. 5
15. Which set option is used with vi editor to display line numbers on screen?
Correct : B. nu
16. Which command will be used with vi editor to move back to the beginning of a word?
Correct : A. b
17. Which of the following are not system calls?
Correct : D. getc
18. The advantage of binary files over text files is that
Correct : D. they are more reliable
19. The cat command is used to
Correct : B. display a file
20. Command compares two files byte by byte and displays the first mismatch.
Correct : A. cmp
21. When the read system call encounters EOF
,it returns
Correct : C. 0
22. Which of the following system calls,does not return control to the calling point, on termination?
Correct : B. exec
23. Which command is used to display the characteristics of a process?
Correct : D. au
24. Which command is used to display and create files?
Correct : A. cat
25. Files that can store data in the same format as used in program are called
Correct : A. binary files
26. The file that stores an integer as a sequence of characters is a
Correct : A. text file
27. Which is the earliest and most widely used shell that came with the UNIX system?
Correct : C. bourne shell
28. System call mknod creates a
Correct : B. new directory
29. A pipe a mechanism that allow a stream of data between to be passed between……..
Correct : A. reader and writer process
30. Which command is used to display the top of the file?
Correct : B. head
31. Which of the following keys is used to replace a single character with new text?
Correct : B. s
32. Which command sends the word count of the file infile to the newfile.
Correct : A. wc infile >newfile
33. Which command is used to remove the read permission of the file 'note' from both the group and others?
Correct : D. chmod go-r, 4-x note
34. Which of the following commands is used to display the directory attributes rather than its contents?
Correct : A. ls -1 -d
35. Which of the following files will displayed by this command cat *ch*
Correct : D. all of the above
36. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
Correct : B. stty intr \\^c
37. Which of the following keys is used to move the cursor to the end of the paragraph.
Correct : A. }
38. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
Correct : A. cat emp[!0-9]
39. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
Correct : A. tee
40. Which symbol is used to separate more than one command in the same command line?
Correct : D. ;
41. The agency that sits between the user and the UNIX system is called the
Correct : C. shell
42. Which of the following commands is used to update access and modification times of a file?
Correct : C. touch
43. Which command is used to count just the number of characters in a file?
Correct : B. wc -c
44. Which of the following commands is used to list contents of directories?
Correct : A. ls
45. In vi editor, forward search is performed using the command.
Correct : D. all of the above
46. Which of the following special shell variables is used to process number of the last background job?
Correct : A. $!
47. Which option will be used with ps command to slow the entire command line of the process being run?
Correct : B. -f
48. Which of the following command addresses all users who are currently hooked on?
Correct : C. wall
49. Which of the following directories contain all the Ales created by a user, including his login directory?
Correct : C. /usr
50. Which of the following commands is used to obtain a list of all files by modification time?
Correct : B. ls -t
51. Which command is used to display the characteristics of a process?
Correct : C. ps
52. The filed separator in cut command is specified with
Correct : B. -d option
53. Which option will be used with touch command to change the access time?
Correct : A. -a
54. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
Correct : A. chmod -r a+x progs
55. The second set of the three permissions (r-) indicates that
Correct : A. group has read permission only
56. Which column contains all details of the permissions of a file when you issue the ls - l command?
Correct : D. first
57. Which of the following commands is used to display your working directory?
Correct : C. third
58. While working with mail command, which command is used to save mail i a separate file?
Correct : A. s
59. Which command is used to terminate a process?
Correct : D. kill
60. The cp command uses:
Correct : D. neither standard input nor standard output file
61. Which command is used to print a file?
Correct : D. lp
62. Which command is used to list out all the hidden files along with the other files?
Correct : D. ls -a
63. Which command is used with vi editor to search a pattern in the forward direction?
Correct : A. /
64. The command to count the number of files in the current directory by using pipes, is
Correct : C. ls | wc -w
65. Which of the following commands is used to get directory one level up?
Correct : B. cd ..
66. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
Correct : B. wc
67. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
Correct : B. rm -r *
68. Which of the following commands is used to change the working directory?
Correct : A. cd
69. Services provided by kernel are………
Correct : D. all of these
70. The shell acts as an interface between the
………..
Correct : A. user and kernel
71. When a process executes a system call, the execution mode of the process changes from ………..
Correct : B. user mode to kernel mode
72. when the kernel services an intrrupt, it blocks out low priority interrupts but………..
Correct : B. services higher priority interrupts
73. The commonly used UNIX commands like date, ls, cat, etc. are stored in………..
Correct : B. /bin and /usr/bin directories
74. Which of the following commands is used to summarize the disk usage?
Correct : C. du
75. Which command is used to sort the lines of data in a file in alphabetical order?
Correct : A. sort
76. If a file has read and write permissions for the owner, then the octal representation of the permissions will be
Correct : B. 6
77. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
Correct : B. cp programs/wb misc
78. The seventh field of /etc/password is………….
Correct : C. shell
79. Which command is used to display the end of the file?
Correct : B. tail
80. The ls -l command tells
Correct : D. all of the above
81. Which option will be used with disk free command to include the total amount of disk space in the file system?
Correct : A. -t
82. Which command is used to set the three permissions for all the three categories of users of a file?
Correct : C. chmod
83. Which of the following commands can be used to get information about yourself?
Correct : A. who am i
84. Which of the following commands can be used to get information about all users who are currently logged into the system?
Correct : B. who
85. Which of the following keys is used to overstrike a whole line?
Correct : A. r
86. Which command is used to locate all the
.profile files in the system?
Correct : B. find /-name profile print
87. The File that contains a set of instructions which are performed when a user logs in, is
Correct : B. .profile
88. The octal representation 652 indicates
Correct : B. write permission for others
89. Which of the following command is used to count just the number of lines contained in a file?
Correct : A. wc -l
90. Which command is used to move all files to the bin sub-directory of the parent directory?
Correct : C. mv * ../bin
91. Which command is used to save the standard output in a file, as well as display it on the terminal?
Correct : D. tee
92. Which of the following commands is used to copy directory structures in and out
Correct : B. cpio
93. Which command allows you to view your file 24 lines at a time?
Correct : B. pg
94. Which of the following special shell variables is used to process number of the current shell?
Correct : B. $$
95. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
Correct : A. -l
96. Which command is used with vi editor scroll half page backward?
Correct : B. [control - u]
97. Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
Correct : B. fch
98. Which of the following keys is used to delete the character beneath the cursor?
Correct : A. x
99. Which command is used to assign only read permission to all three categories of the file 'note'?
Correct : C. chmod ugo=r note
100. Which command will be used with vi editor to append text at end of line?