5. Which of the following is a command for searching a pattern in a file?
Correct : B. grep
6. Unix Command can be typed in
Correct : A. lower case
7. Shell Program is stored in a file called
Correct : B. sh
8. WhicBh shell offers a command history feature
Correct : C. bourne shell
9. The minimum number of links for any directory file are
Correct : D. 2
10. The default value of Umask is
Correct : C. 0022
11. Binary executable required for system administration is usually placed in ________ directory.
Correct : A. letc
12. All user directories are usually placed in _________ directory.
Correct : B. lusr
13. If there are three links for a file then the number of copies of the file would be
Correct : A. one
14. After typing the contents of file test created by you by giving the command cat>test you save the contents by
Correct : D. pressing ctrl-d
15. The file for which we do not have write permission can be deleted using the command
Correct : D. rm-f-file
16. The permission 746 can be represented as
Correct : D. rwxr- -rw–
17. A Sticky bit applies to a file would mean that
Correct : B. it would stick around in memory even when its execution is over
18. The command pwd gives
Correct : A. present working directory
19. Which of the following is not a unix command
Correct : D. del
20. The size of any block in the unix file system is
Correct : D. any of the above
21. To find the block size on your file system the command is
Correct : D. cmchk
22. Each entry in inode table is of size
Correct : D. 64 bytes
23. The program contained in boot block, that loads kernel into memory is called
Correct : A. disk bootstrap program
24. The state of the file system is contained in
Correct : C. super block
25. Which file gets executed when we use the passwd command
Correct : C. /bin/passwd
26. The command cal j 1997 would give the output as
Correct : C. an error
27. The output of command banner “Unix shell programming” would be
Correct : B. a banner showing ‘unix shell’ in one single line
28. To see the last access time of various files in a file system the command is
Correct : A. is-iu
29. To ascertain what are the contents of the file in your the system the best way would be
Correct : C. use the command file*
30. Which of these is not a command of Unix related with DOS
Correct : B. doscopy trial a:/
31. Which of following commands do not belong to multiple file editing commands
Correct : D. all the above
32. The difference between the commands ps –e and ps –a is
Correct : B. ps –e gives details of every process running in memory whereas ps –a gives details of all user processes
33. The father of all processes is
Correct : C. sched
34. The process id numbers of the processes vhand,bdflush,sched and init are
Correct : B. 2,3,0 and 1
35. Which of the following is not true regarding the command $ nohup cat *.let | nohup sort >f1 &
Correct : A. the process would die if the user logs out before the command’s execution is over
36. Which of the following is not true regards the kill command
Correct : A. super user can kill deamon processes
37. Which of the following is not true
Correct : C. both are false
38. For a person to receive messages he should have his terminal set to a parameter which will allow him receive messages.The command to set this parameter is
Correct : C. mesg –y
39. The command that unix offers to a user to find out whether he can send messages to a particular terminal are
Correct : D. finger –i and who –t
40. If the user has read a news item he cannot read it again because of creation of the file
Correct : D. .news_time
41. To read the stale news the option available is
Correct : A. news –a
42. The message of the day is stored in a file called
Correct : B. /etc/motv
43. The incoming mail of user with the login name aa12 is stored in the file
Correct : A. /usr/spool/mail/aa12
44. .mailrc is the file
Correct : C. which is invoked when the mail command is executed
45. The escape sequence \033[4m is used to
Correct : B. mark them as bold
46. Which of the following assignments is illegal
Correct : C. c=’1972’
47. Which of the following assignment is illegal
Correct : C. age=25
48. A null variable a can be created using
Correct : D. all the above
49. The shell metacharacter $# represents
Correct : A. total number of arguments supplied to the shell script
50. When we are executing a shell script the shell acts as
Correct : A. an interpreter
51. On executing a statement set -3+1
Correct : D. this command would result into an error
52. On executing the command Shift $v
Correct : A. the positional parameters would be shifted by the value of the variable v
53. Which of the following shows the correct hierarchy of arithmetic operations in shell
Correct : D. (),/,% or *,- or +
54. Which of the following is allowed in an arithmetic statement involving exprinstruction
Correct : C. ()
55. The statement z=’expr 5/2’ would store in z a value
Correct : C. 2
56. The expression expr -7 % 2evaluates to
Correct : B. -1
57. The expression expr -2 % 7 evaluates to
Correct : B. -2
58. Hierarchy decides which operator
Correct : B. is used first
59. The break statement is used to exit from
Correct : B. a for loop
60. An until loop ensures that the statement within the loop get executed
Correct : D. none of the above
61. Which option will be used with sort command to start sorting after the nth column of the (m+1)th field
Correct : B. +m.n
62. Which command is used to terminate a process
Correct : D. kill
63. The command is used to compare the files is known as
Correct : B. cmp
64. 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
65. Which command is used to remove a directory
Correct : B. rmdir
66. Which of the following keys is used to replace a dingle character with new text
Correct : B. s
67. Which command is used to extract a specific columns from the file
Correct : B. cut
68. Which command sends the word count of the file infile to the newfile.
Correct : A. wcinfile>newfile
69. 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
70. 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]
71. Which command will be used with vi editor to insert text to left of cursor?
Correct : D. i
72. In vi editor, forward search is performed using the command.
Correct : D. all of the above
73. Which of the following special shell variables is used to process number of the last background job?
Correct : A. $!
74. Which option will be used with ps command to slow the entire command line of the process being run?
Correct : B. -f
75. Which of the following command addresses all users who are currently hooked on?
Correct : C. wall
76. Which of the following commands is used to identify the type of file by context?
Correct : C. file
77. The filed separator in cut command is specified with
Correct : B. -d option
78. Which of the following options will be used to display number of blocks used by a file?
Correct : D. -s
79. Which option will be used with touch command to change the access time?
Correct : A. -a
80. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
Correct : A. chmod -r a+xprogs
81. Which command is used to display and create files?
Correct : A. cat
82. The second set of the three permissions (r-) indicates that