Vous êtes sur la page 1sur 14

1.

Root directory in UNIX is denoted by ____________


a. –
b. /
c. ()
d. \
2. dev directory contain files for controlling ____________.
a. input/output
b. OS
c. Both A and B
d. None
3. PWD stands for ______________.
a. present working directory
b. present working diary
c. past working directory
d. past working diary
4. How do you rename file "new" in file "old"?
a. mv new old
b. rm new old
c. cp new old
d. rn new old
5. How do you delete a file?
a. rm filename
b. touch filename
c. cut filename
d. less filename
6. ____________works as a command interpreter.
a. Hardware
b. Kernel
c. Shell
d. CPU
7. Which command can be used to display the contents of a file on the screen?
a. s
b. cat
c. grep
d. cut
8. How can you append the output of a command to a file?
a. command < file
b. command > file
c. command << file
d. command >> file
9. When the shell is used from a terminal it will issue a prompt before reading a command.
By default this prompt is _____.
a. >
b. &
c. $
d. #
10. ________ Pathname uses the current directory as point of reference for the file.
a. Relative
b. Absolute
c. Both A and B
d. None of these
11. ____ Command display the status of a process.
a. ls
b. grep
c. ps
d. cat
12. In command prompt, the first word in the string of character is ________.
a. Password
b. username
c. directory name
d. all of these
13. In command prompt, the first word in the string of characters is username followed by
the symbol _______.
a. #
b. @
c. !
d. $
14. Home directory represented by a _______ symbol.
a. #
b. ~
c. !
d. $
15. Option when present starts with a ______ and are usually a single letter or a digit.
a. #
b. $
c. %
d. –
16. Binary file are generally executed by the kernel and will generate a ________ at the time
of execution.
a. Binary id
b. process id
c. command id
d. All of these
17. To know whether a command is internal or external we can use the ________
command.
a. Type
b. cat
c. mkdir
d. cd
18. By pressing _______ key after typing first few letters of a command, shell automatically
provides the remaining information
a. Enter Key
b. Shift Key
c. Ctrl Key
d. Tab key
19. Which command used to change the password of the current login account ?
a. Password
b. pword
c. passwd
d. psd
20. Which command used to change the password of other user of the system by specifying
the abebef(username) after the passwd ?
a. password abebef
b. pword abebef
c. passwd abebef
d. passwd abebef
21. which command used use to remove data on the screen ?
a. clear
b. delete
c. remove
d. clear screen
22. In Linux, ______ is a special type of file that contains files and other directories.
a. folder
b. directory
c. file
d. command
23. When user log on the system, Linux automatically places in which directory?
a. base
b. right
c. recent
d. home
24. ______ Directory is created by the system when user account is opened.
a. Home directory
b. Base directory
c. Recent directory
d. working directory
25. ______ Path name is simply a sequence of directory names separated by slash.
a. user
b. Absolute
c. Base
d. Home
26. In absolute path name, directory names are separated by ________.
a. \
b. |
c. #
d. /
27. Which command used to display the current working directory ?
a. pswd
b. pword
c. pwd
d. passvvd
28. Directories in Linux can be created using _______ command.
a. make
b. mkdir
c. makedir
d. mdir
29. which command can be used to create a directory named fin ?
a. mkdir fin
b. mk fin
c. dir fin
d. md fin
30. Which command used to change directory ?
a. cd
b. cd ..
c. change
d. cdir
31. which command used to comeback to parent directory ?
a. change
b. cdir
c. cd
d. cd ..
32. In cd .. command, double dot (..) stands for the ______ directory.
a. child
b. parent
c. base
d. main
33. If your current working directory is home/data/abebef/fin and to change it to home
directory, which command used?
a. cd ..
b. cd ../../
c. cd ../../../
d. cd ../../../../
34. which command used for change directory to /home/abebef/fin, from any current path ?
a. cd ~/fin
b. cd /fin
c. cd */fin
d. cd &/fin
35. which symbol refer to home directory of the user ?
a. *
b. /
c. ~
d. &
36. which command is used to change directory to the root directory from any current path ?
a. cd /
b. cd
c. cd –
d. cd ..
37. which command is used to change directory to the home directory from any current
path?
a. cd /
b. cd
c. cd –
d. cd ..
38. To delete a non-empty directory with all its contents we can use the _______ command.
a. rmdir
b. rm –all
c. rm –r
d. rm –d
39. In Linux, cat > lits.txt command, > symbol is known as ________ operator.
a. redirection
b. relational
c. logical
d. parameter
40. Which command used to append content in an existing file?
a. cal >> list.txt
b. cet >> list.txt
c. can >> list.txt
d. cat >> list.txt
41. _____directory contain executable file for most of the UNIX commands.
a. lib
b. dev
c. tmp
d. bin
42. The _______ command is used to delete/remove one or more files.
a. rm
b. rmdir
c. delete
d. remove
43. Which command is used to delete file using interactive mode and the user will be asked
to verify the delete operation?
a. rm –i filename
b. rm –r filename
c. rm –r *
d. rm –rf
44. Which command is used to delete directory and along with all its contents ?
a. rm –i filename
b. rm –r dirname
c. rm –r *
d. rm –rf *
45. Which command is used to delete all contents within the current directory ?
a. rm –i filename
b. rm –r filename
c. rm –r *
d. rm –rf
46. _______ is a wildcard character.
a. *
b. /
c. –
d. %
47. The _______ command gives us the list of the contents in the current or a specified
directory.
a. rm
b. ls
c. dir
d. list
48. _______ symbol is treated as hidden file.
a. .
b. ..
c. /
d. *
49. _______ Command used to create hidden file.
a. cat > .intro
b. cat>intro
c. cat>*intro
d. cat>-intro
50. Which command is use to lists the files that are in user’s home directory?
a. ls ~
b. ls [svics]*
c. ls [n-s][5-7]??
d. ls –r
51. Which command copies a file or group of files ?
a. cp
b. copy
c. photocopy
d. duplicate
52. cp command needs ________ arguments.
a. two
b. three
c. four
d. five
53. In cp command, which is the first argument?
a. destination file
b. source file
c. (a) or (b)
d. none of these
54. In cp command, which is the second argument?
a. destination file
b. source file
c. (a) or (b)
d. none of these
55. To rename the fin to mgmt, which command will be used ?
a. mv fin mgmt.
b. mv mgmt fin
c. move fin mgmt
d. m mgmt fin
56. Which command is used to view one page contents on the screen at a time ?
a. more
b. move
c. page
d. view
57. The more command can be used to display the contents of file _______.
a. width wise
b. name wise
c. type wise
d. page wise
58. From an output os the ls command, the character ________ in the first column refer to a
file.
a. –
b. *
c. d
d. all of these
59. The character ________ in the first column refer to a directory.
a. –
b. *
c. d
d. all of these
60. An object in linux has ________ permissions.
a. 1
b. 2
c. 3
d. 4
61. Which character option means to permit it to change the file?
a. w
b. p
c. x
d. r
62. Which character option means to permit to execute the file?
a. p
b. e
c. x
d. w
63. Which symbol will be used to any position when the user doesn’t have that particular
permission?
a. asterisk (*)
b. hyphen (-)
c. Question mark (?)
d. hash (#)
64. We use _______ number system for representing permission as numeric value.
a. octal
b. decimal
c. binary
d. all of these
65. Which octal number allow no permission assigned?
a. 0
b. 1
c. 2
d. 3
66. Which octal number allow only execute access?
a. 0
b. 1
c. 2
d. 3
67. Which octal number allow only write access?
a. 0
b. 1
c. 2
d. 3
68. Which octal number allow write and execute access?
a. 0
b. 1
c. 2
d. 3
69. Which octal number allow only read access?
a. 4
b. 5
c. 6
d. 7
70. Which octal number allow read and execute access?
a. 4
b. 5
c. 6
d. 7
71. Which octal number allow read and write access?
a. 4
b. 5
c. 6
d. 7
72. Which octal number allow everything?
a. 4
b. 5
c. 6
d. 7
73. Which command used to change the permission of a file?
a. chmod
b. change
c. permission
d. command
74. To make list.txt file into read only file, which command will be used?
a. chmod ugo-r list.txt
b. chmod ugo-o list.txt
c. chmod ugo-w list.txt
d. chmod vgo-w list.txt
75. What is the meaning of ugo, in chmod ugo-w list.txt permission command?
a. user, group, open
b. user, group, owner
c. user, group, operator
d. user, group, option
76. Which command will be used to give list.txt file write and execute permission?
a. chmod u+wx list.txt
b. chmod u+go list.txt
c. chmod u+xy list.txt
d. chmod v+vx list.txt
77. sign is used to assign a permission ?
a. *
b. +
c. –
d. &
78. Which sign is used to remove permission?
a. *
b. +
c. –
d. &
79. Linux considers ______ as its standard input device.
a. keyboard
b. mouse
c. scanner
d. pen drive
80. Linux considers _______ as its standard output device.
a. printer
b. plotter
c. monitor
d. speaker
81. If any command is executed in Linux, its input will be taken from the ________.
a. keypad
b. mouse
c. Enter
d. Keyboard
82. If any command is executed in Linux, its output will be displayed on the
a. speaker
b. monitor
c. plotter
d. printer
83. _______ Symbol implies redirection of output.
a. >
b. <
c. >>
d. <<
84. _______ symbol implies redirection of input.
a. >
b. <
c. >>
d. <<
85. Which symbol implies redirection of output telling Linux not to display output on the
screen but put it somewhere else?
a. >
b. <
c. $
d. &
86. Which symbol implies redirection of input telling Linux not to accept the in from the
keyboard but accept it from somewhere else?
a. &
b. #
c. <
d. >
87. Which command is used to store the list of files present in current directory into a file?
a. ls < list
b. ls > list
c. ls << list
d. ls >> list
88. Which facility of Linux helps in connecting commands with other command?
a. Execute
b. Base
c. Direction
d. Piping
89. Using a pipe symbol (|) output of one command can be supplied as input for another
command and this process is known as ______ in Linux.
a. direction
b. jointing
c. piping
d. concoting
90. The ______ command display the beginning lines of the file.
a. title
b. head
c. body
d. input
91. Which command will be used to display first ten lines of the list.txt file?
a. list.txt head
b. head list.txt ten
c. head list.txt
d. head list.txt+10
92. Which command will be used to display the lines from the end of file?
a. tail
b. end
c. last
d. final
93. The tail command will be used to display last _______ lines by default.
a. eight
b. nine
c. ten
d. eleven
94. Which command will be used to find last ten lines from the list.txt file?
a. tail list.txt -10
b. tail list.txt +10
c. tail | list.txt
d. tail list.txt
95. Which command will be used to order the data in ascending or descending sequence?
a. arrange
b. sequence
c. sort
d. type
96. To use super user account when using the terminal, we need to add ________ as a
prefix to the command.
a. khado
b. pado
c. sudo
d. mado
97. Which command used to create a new user on the system?
a. useradd
b. passwd
c. who
d. addgroup
98. Which command is used to change the password of any valid user of the system?
a. adduser
b. passwd
c. who
d. addgroup
99. Which command is used to display the list of all the user that are presently logged into
the machine?
a. adduser
b. password
c. who
d. addgroup
100. Which command is used to add a new group?
a. adduser
b. passwd
c. who
d. groupadd
101. Which command is used to delete a user from the system?
a. adduser
b. deluser
c. who
d. addgroup
102. Which command is used to deletes a group from the system?
a. adduser
b. passwd
c. who
d. delgroup
103. Look at the result below and answer the following three questions.

Which command may have produced these lines?


a. ls -l
b. ls -al
c. ls -pl
d. ls –pe
104. Starting from any directory, which command must be entered to return
immediately to one’s home directory?
a. cd .
b. cd -
c. cd
d. cd HOME
105. Which command was entered to change the file permissions of ‘a’ from the first
to the second form? (2 answers).

a. chmod 761 a
b. chmod 167
c. chmod +124 a
d. chmod ou+x,g+w,o-r a
e. chmod u+x a; chmod o+x;
106. How can you add Alem, a new user, to your system?
a. Using useradd
b. Using adduser
c. Using linuxconf
d. All of the above
e. None of the above
107. In which directory can you store system user default files used for creating user
directories?
a. /usr/tmp
b. /etc/default
c. /etc/skel
d. /etc/users
e. None of the abov
108. What command is used to display the characteristics of a process?
a. au
b. ps
c. du
d. pid
e. None of the above
109. What shell's wild-card is used to match any number of characters including
none?
a. *
b. ?
c. [!ijk]
d. [ijk]
e. None of the above
110. What command is used to assign executable permission to all of the files named
"report"?
a. chmod ugo + x report
b. chmod u + x report
c. chmod ugo + rw report
d. chmod ugo + r report
e. None of the above
111. What command is used to count the number of files in the current directory by
using pipes?
a. ls | ws - c
b. ls | wc - w
c. ls | wc - l
d. ls | wc
e. None of the above
112. Which of the following subdirectory (ies) contains the device files?
a. /dev
b. /bin
c. /etc
d. /home
e. None of the above
113. Which of the following command can be used to rename a file in UNIX?
a. ren
b. mv
c. remove
d. change
e. None of the above
114. The command chmod 761 letter is equivalent to
a. chmod 4=7, g = 6, o = 1 letter
b. chmod a = 761 letter
c. chmod u = rwx, g = rw, o = x letter
d. chmod 167 letter
e. None of the above
115. What command is used to assign only read permission to all three categories of
the file'letter'?
a. chmod u + r, g + r, o - x letter
b. chmod ugo = r letter
c. chmod a - rw letter
d. chmod go + r letter
e. None of the above
116. What command is used with file named 'letter' to remove the executable
permission from the user and assign read permission to the group and others?
a. chmod go + x, u - x letter
b. chmod g - x, uo + r letter
c. chmod go + r, u + x letter
d. chmod u - x, go + r letter
e. None of the above
117. What command is used to assign executable permission to the owner of the file
named "letter"?
a. chmod ugo + x letter
b. chmod u + x letter
c. chmod u + w letter
d. chmod g + x letter
e. None of the above
118. What command is used to summarize the disk usage?
a. disk
b. du
c. fdisk
d. chkdsk
e. None of the above
119. The Octal number to be given alogn with chmod command to make a file
readable, writable and executable to the owner, readable and executable to group and
others is:
a. 000
b. 755
c. 744
d. 555
e. None of the above
120. Which option is used with rm command to make the command prompt the user
with each filename and a ?, before acting on it
a. -r
b. -x
c. -i
d. -1
e. None of the above
121. Which command is used to delete all files in the current directory as well as all
files and sub-directories in its subdirectories?
a. rm *
b. rm -r *
c. rm all
d. rm *.*
e. None of the above

Vous aimerez peut-être aussi