0% found this document useful (0 votes)
46 views25 pages

11th Computer CH-6

Uploaded by

Ilesh Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views25 pages

11th Computer CH-6

Uploaded by

Ilesh Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Sub: Computer Std.

:11th EC

Chapter:6 Basic Ubuntu Linux commands

6.1 Starting up terminal


Here students will learn what is GUI, CLI, what is shell and what are
the types of shells.
1. Linux is know as ___
a operating system b software
c application software d none
2. once user longs by the use of what operating system does he converse ?
a command line interface b graphical interface
c both d none
3. which interface use approach gives us better understanding, uniformity, effectiveness of real strength
of Linux ?
a command line interface b graphical interface
c both d none
4. a command line interface can be opened in a window called the ___ window.
a graphical b terminal
c interface d all of these
5. in Linux what does program for proving specific task suggest ?
a method b characteristics
c option d command
6. CLI means ?
a computer line interface b common line interface
c command line interface d correct line interface
7. what is the full form of GUI ?
a graphical uses interface b graphical user interchange
c graphical user interface d graphical user interface
8. when user logs into the system, he can interact with the system using ?
a default interface b graphical user interface
c system interface d none
9. to open a terminal window, select ___
a start/accessories/terminal b application/accessories/term window
c application/terminal window d applications/accessories/terminal
10. which window provides to open a command line console in GUI ?
a term window b terminal window
c shell window d terminal key
11. to open a terminal window, press __
a ctrl + alt +t b ctrl + alt + p
c alt + ctrl + t d ctrl + alt + k
12. in terminal window cursor is preceded by ___
a letter b numbers
c symbol d all of above
13. in terminal window the cursor is preceded by letters, and ended with which sign ?
a % b @
c $ d none
14. the first word in string in terminal window is known as ?
a computer name b user name
c password d none
15. in terminal window after the username which symbol is visible in the screen ?
a % b @
c $ d none
16. after the sign of @ what is displayed ?
A. name of user
B. name of computer that is being used
C. both a and b
D. none
17. in command prompt finally we can see in the string ?
a colon sign b home directory
c both a and b d none
18. ___ symbol is the command prompt.
a @ b #
c $ d both b and c
19. home directory represented by a ----------- symbol.
a # b ~
c ! d $
20. the command prompt indicates that the interface is ready to interact with the ___
a applications b program
c host d user
21. which interface has more understanding , uniformity and efficiency ?
a graphic user interface b graphical user interface
c common line interface d command line interface
22. $ symbol is known as ?
a command prompt b command interface
c common prompt d command symbols
23. __is a program that accomplishes certain task.
a algorithm b shell
c flow chart d commands
24. which is used to provide environment for user interaction ?
a commands b shell
c graphical d none
25. which of the following is a command language interpreter ?
a algoritham b shell
c flow chart d command
26. what does command line interface say in Linux ? or in Linux which is user program that provides
environment for mutual interaction ?
a script b shell
c program d all of above
27. what is shell ?
a program for user b command line interface
c gives, receive commands d all of above
28. which symbol will display on screen when user logged in as administrator ?
a # b $
c & d @
29. a ___ is a program that accomplishes certain task.
a host b application
c command d none of these
30. a ___ is a command-line interface.
a program b shell
c kernel d interpreter
31. a ___ is a command language interpreter that accepts/issues commands, understands it, and talks to
the kernel to execute it.
a program b kernel
c shell d interpreter
32. --------- is to execute it and display result as per given instruction.
a kernel b shell
c command listing the shells d bash shell
available on the system
33. command language interpreter shell performs ________
a accepts/ issues commands b understands command
c talks to the kernel to execute it d all of these
34. which shells are available to work on the Linux systems ?
a text b character
c numerous d financial
6.2 Different types of shells
Here students can understand differe types of shell available in linux

35. which popular shells available on command line interface ?


a bourne shell (sh) b c shell (csh and tcsh)
c korn shell (ksh) & bash shell (sh) d all of these
36. which shell is the earlkiest unix shell used as command line interface ?
a c shell *csh and tcsh) b bourne shell (sh)
c bash shell (sh) d korn shell (ksh)
37. ___ is a popular shell.
a bourn b c
c kern d all of these
38. which shell provides basic mechanisms for shell script programming ?
a korn shell(ksh) b bash shell (sh)
c bourne shell (sh) d c shall (esh and tesh)
39. which shell allows us to write a program based solely on commands ?
a bourne shell (sh) b korn shell (ksh)
c c shell (csh and tcsh) d bash shell (sh)
40. ___ the c shell was developed as shell using ?
a cobol programming b java programming
c c programming d none
41. who is a command language interpreter ?
a shell b command
c prompt d none
42. what is the acronym of bourne shell?
a ksh b sh
c csh d tcsh
43. what is the acronym of korn shell ?
a tcsh b csh
c sh d ksh
44. what is the acronym of c shell ?
a csh b csh
c both (a) & (b) d sh
45. what is the acronym of base shell ?
a tcsh b sh
c csh d ksh
46. which shell was developed to use c programming sntax ?
a kor n shell (ksh) b bash shell (sh)
c bourne shell (sh) d c shell (csh)
47. __ is the newer version of cash.
a tcsh b sh
c ksh d csh
48. ___ was developed as shell using c programming syntax.
a tcsh b sh
c ksh d csh
49. which shell allows us to write program based on commands ?
a bourne shell b c shell
c korn shell d bash shell
50. which shell is commonly used and available on all Linux system ?
a korn shell b bash shell
c bourne shell d c shell
51. __shell provides additional shell script programming features to add the limitations of csh ?
a ksh b tchs
c sh d pksh
52. which shell was developed to combine the features of both sh and csh ?
a korn shell (ksh) b bash shell (sh)
c bourne shell (sh) d c shell (csh)
53. which is the newer version of bourne shell ?
a bosh shell b c shell
c korn shell d bash shell
54. bash shell allows __________
a account configuration b for easier and sophisticated command
c shell script programming d all of these
55. bash shell allows :
a shell script programming b java programming
c c programming d all of above
56. which shell is the combination of sh and csh ?
a bourne shell b bash shell
c korn shell d none
57. which is the standard shell for Linux ?
a c shell b base shell
c bash shell d none
58. which command used to find all available shells in system?
a cat/etc/ shell b cat / etc / shells
c cat /atc/ shell d cat /atc / shells
59. Linux comes with variables which contain environment settings so it is known as ?
a shell variables b environment variables
c setting variables d none
60. the value of the current default shell is stored in environment variable named___
a echo b SHELL
c shell d var
61. to display the value of any variable, ___ command is used.
a echo b bin
c shell d var
62. Linux is which kind of system ?
a not a case sensitive b command
c case sensitive d graphics
63. what will be displayed by giving the command - $ echo $shell?
a /bin/ch b /bin
c /bin/bash d /bash/bin
6.3 Command Syntax
Students can understand syntax of linux command.
64. the syntax of command is known as ___
a uniform b scattered
c standard d depends on system
65. Linux commands consist of ___ parts.
A 1 b 3
c 5 d 2
66. which of the following is the part of Linux command syntax ?
a name b options
c arguments d all of above
67. in Linux , command name followed by necessary _________
a options b arguments
c both (a) & (b) d none of these
68. Linux commands can have how many options ?
a 0 b more than one
c both a and b d none
69. option when present starts with a -------- and are usually a single letter or a digit.
A # b $
c % d -
70. the options in a Linux command starts with a ___
a hyphen b underscore
c digit d letter
71. some commands may have option with
a double hyphen b single letter
c single digit d all of above
72. the shell automatically provides the remaining information when the ___ key is pressed at the
command prompt.
A enter b ctrl
c tab d alt
73. depending on command the ___ and ___ of option may vary ?
a number and meaning b options and numbers
c numbers and arguments d arguments and meanings
74. Linux command as ----------- or ------------- .
a internal b external
c (a) & (b) d binary
75. the commnd that have a binary file explicitly stored either
a /sbin,/usr/sbin b /usr/bin,/bin
c /usr/local/bin d All of these
76. 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
77. command directly executed by the shell are called ------------
a internal b external
c (a) and (b) d binary
78. most of the command that we use in Linux are ---------- command .
a internal b external
c (a) and (b) d binary
79. to know whether a command is internal or external we can use the __command.
A type b cat
c mkdir d cd
80. which command is use to know internal or external we can use the __ command.
A type info b cat info
c mkdir info d all of these
81. if we give command $ type info, it will display ?
a info is /usr/lib/info b info is /bin/info
c info is /usr/bin/info 9 none
6.4 General Purpose Commands
Here students will understand the commands issued in CLI
82. which is the best way to start with learning Linux commands ?
a general purpose commands b general property commands
c general public commands d graphical user commands
83. to issue a command first type name of command followed by ?
a options b arguments
c both a and b d none
84. 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
Cal
85. which command used to display the calendar of any specific month or entire year ?
a calendar b cale
c cal d calc
86. which command displays the calendar of june 2013 ?
a cal 2013 06 b cal 06 2013
c cal june 2013 d cal 2013 june
87. which command displays the calendar of entire year of 2013 ?
a cal latest b cal year
c cal 09 d cal 2013
88. which command display the entire year of 2013’s calendar view as single screen page at a time ?
a cal 2013| more b cal 2013 |display
c cal 2013 | view d cal 2013 | show
89. which command takes input from the cal command in Linux ?
a date b more
c base d sqrt
90. to display the next page of the help screen, press___
a b b d
c f d h
91. to display the previous page of the help screen, press___
a b b d
c f d h
92. to exit the help pages, press__
a ctrl + b b d
c ctrl + d d h
Date
93. in Linux, which command displays current system date and time ?
a current b now
c latest d date
94. which command can be used with suitable format specification as arguments ?
a pwd b man
c current d date
95. in date command , each format is preceded by ___ symbol .
a + b _
c % d #
96. __ operator and a single character describing the format.
a + b %
c $ d @
97. in date format is preceded by +followed by % and ___ describing the format.
a @ b character
c & d none
98. in Linux , date command displays only the current date in ------- format.
a dd/mm//yy b mm/dd/yyyy
c dd/mm/yyyy d mm/dd/yy
99. which command displays only the current date ?
a date +%d b date +d
c date + “$d” d date +$d
The Command Line Calculator (Bc)
100. which command in Linux is a command line calculator ?
a ac b dc
c bc d nc
101. which option is used to include the standard math library ?
a -l b -t
c -r d none
102. __ command of the calculator is used to pull out the “standard math libraries”.
a bc-1 b bc-1.06
c cb –h d all of these
103. in Linux, command line calculator performs ____________
a number of scientific math functions b conversion between diff. number
system
c run programs d all of these
104. which type of math functions performs be command ?
a addition,subtraction b multiplication, devision,modulus
c exponents, sine,,cosine,logarithm d all of these
105. if we type ((99.1 / 5.15 ) * 99.9) is know as__ in bc?
a division and multiplication b combine command
c expression d combine expression
106. which command used to find out the natural logarithm of 2013 /
a l(2013) b log(2013)
c nlog(2013) d naturallog (2013)
107. which function allows user to set numbering system to use for input ?
a inputbase b iput base
c ibase d inbase
108. which function allows user to set numbering system to use for output ?
a outbase b obase
c outputbase d oputbase
109. which function used to find outt the square root of 9 ?
a s(9) b sq(9)
c sqrt(9) d sqroot
110. the importance of bc calculator over graphical calculator ___________
a speed b flexibility
c power to perform math operations d all of these
111. which command used to return the command prompt ?
a ctrl + d b ctrl + e
c ctrl + c d ctrl + r
112. in bc –l we can perform which type of functions ?
a trigonometric b logarithmic
c both a and b d string
113. sine, cosine, arctangent and log are which type of functions ?
a trigonometric b logarithmic
c both a and b d string
114. in how many number system we can change the ibase or obase ?
a 3 b 4
c 2 d 1
115. which of the following is/are the format of ibase or obase ?
a octal b binary
c hexadecimal d all of above
116. which of the following is the base of binary ?
a 8 b 2
c 10 d 16
117. which of the following is the base of decimal ?
a 8 b 2
c 10 d 16
118. which of the following is the base of octal ?
a 8 b 2
c 10 d 16
119. which of the following is the base of hexadecimal ?
a 8 b 2
c 10 d 16
120. in ibase=10 and obase=2, if we enter 100 then what will be output ?
a 1100100 b 1101001
c 1001100 d 1110001
121. in ibase=16 and obase=2, if we enter 100 then what will be output ?
a 111000000 b 100010000
c 100000000 d 000000001
Displaying A Message : Echo
122. which command used to display a message on the terminal ?
a echo b each
c print d shell
123. in echo command , if we write data in double quotes then
A. it will be displayed in output
B. it will not be displayed in output
C. command will give error
D. none
124. which command used to store value 10 in variable cost ?
a 10=cost b cost != 10
c cost =10 d cost $10
125. which command used to display value of variable.
a echo b each
c print d shell
126. when echo command finds any string prefixed with $, will consider to be __
a string b character
c both a and b d variable
127. which symbol represents a variable.
a $ b @
c ! d *
128. any word prefixed with $ sign will print ?
a value of variable b name of variable
c assign value to variabl d all of above
129. which command used along with other commands to give meaningful output ?
a echo b each
c print d shell
130. if we type $echo current time is `date +%t`, then it will display ?
a current time is date b current time
c current time is `date +%t` d current time is 14 :55: 04
131. back quotes available on key with --------- sign .
a $ b ~
c ! d *
132. in $echo current time is `date +%t`, which command will execute first ?
a echo command b time command
c date command d error
133. which command used to change the password of the current login account ?
a password b pword
c passwd d passwd
134. which command used to change the password of other user of the system by specifying the
hetvi(username) after the passwd?
a password hetvi b pword hetvi
c passwd hetvi d passwd hetvi
135. in case of ___ user you will be allowed to change password ?
a standard b normal
c genuine d none
136. which command used use to remove data on the screen ?
a clear b delete
c remove d clear screen
137. Linux provide two inbuilt command namely __ and __ to assist the user while working on the
command line interface.
a help,get b help, man
c help,assist d get,man
138. Linux provide two __ command help and man to assist the user while working on the
command line interface.
a external b standard
c built in d online
139. which is correct to get help on the mv command using Linux online manuals ?
a mv--help b mv--get
c mv help d mv—helps
140. man means ?
a manual b manager
c manage d mostly
141. which command is used to get small description of a command ?
a whatis b man
c helpr d all of these
142. what is the use of whatis command ?
a display the help in pages ` display the help in one page
c display the help in one line d none
143. which command is used to get one line explanation of the command and omits any additional
information ?
a whatis b man
c help d all of these
144. in a situation when exact command is not known,__command can be used .
a apropos b man
c helpr d all of these
145. what is the user of apropos command ?
a to know the details of command b to know the name of command
c to know the different option d none
146. if we give $apropos move, then it will display ?
a output of move command b help on move command
c display commands to move file d all of these
6.5 Working With Directory
Here students will learn different commands related to directories.
147. who represent an information entity, which can be used for variety of purpose.
A folder b command
c file d all of these
148. a ____ is a special type of file that contains files and other directories.
A folder b file
c directory d group
149. the default directory, when the user logs in Linux is___
a /home/username b /home
c /default d directory
150. if user name is radhe then in $echo $home, what it will display ?
a /home b /home/radhe
c /radhe d /radhe/home
151. the first slash in an absolute path is for ___ directory.
A parent b root
c current d home
152. the directory a user is working in is called the ___ directory.
A current b parent
c root d home
153. when user log on the system, Linux automatically places in which directory ?
a base b right
c recent d home
154. _________ directory is created by the system when user account is opened.
A home directory b base directory
c recent directory d working directory
155. __ is the default working directory at the time of log on in system variable.
A base b power
c home d main
156. _______ path name simply a sequence of directory names separated by slash.
A user b absolute
c base d home
157. in absolute path name, directory names are separate by _________
a \ b |
c # d /
158. which type of information display an absolute path name ?
a files location with reference b file’s location with detail
c file’s location with area d file’s location with account
159. the first slash (/) is synonymous to __ directory ?
a home directory b user directory
c root directory d standard directory
160. the second slash (/) act as a __ ?
a delimiters b separator
c root directory d home directory
161. in directory /home/administrator, what is known as username ?
a home b administrator
c both a and b d none
162. if we write /home/its/ugl1/svics, then which is known as home directory ?
a svics b ugl1
c its d home
163. if we write /home/its/ugl1/svics, then which directory is sub group ?
a svics b ugl1
c its d home
Present Working Directory
164. to display the current working directory, ____ command should be used.
A display b view
c ls d pwd
165. pwd means ?
a present working directory b past working directory
c personal working directory d none
Creating Directory
166. ____ command helps in making directories in Linux.
A make b create
c mkdir d makedir
167. the mkdir command takes the name of the directory to be created as __
a arguments b options
c both a and b d none
168. the power of command line over GUI lies in its ___
a potential b standard
c flexibility d all of above
169. directories in Linux can be created using _______ command .
a make b mkdir
c makedir d mdir
170. mkdir command can be followed with the names of the directories to be __
a modify b edited
c group d created
171. 106.which command can be used to creat a directory named hetvi ?
a mkdir hetvi b mk hetvi
c dir hetvi d md hetvi
172. to create directories named hetvi, harshvi,vaishnvi, __command is used ?
a md hetvi harshvi vaishnvi b mk hetvi harshvi vaishnvi
c mkdir hetvi harshvi vaishnvi d dir hetviharshvi vaishnvi
Change Directory
173. to create a directory within a directory. The user should first ___ the directory
a change b create
c use d make
174. the directory can be changed using ___ command.
A chdir b cd
c change d switch
175. to return to the previous directory ___ command is to be used.
A cd/ b chbir/
c cd.. d change…
176. in directory double dots (..) refers to __
a parent directory b home directory
c root directory d none
177. if we are in /home/hetvi/harshvi, and want to come out then _command is used
a cd .. (2 times(() b cd ../..
c both a and b d cd ../../..
178. there should be ___ space between cod command and double dots.
A one b two
c no d three
179. which command change directory to /home/username/desktop ?
a cd /home/username b cd ~/desktop
c cd ~/username d none
180. which of the following symbol is represent home directory ?
a ~ b $
c # d none
181. which command will change directory to root directory from any path ?
a cd .. b cd ~
c cd / d cd .
182. if we give command cd then it will change to __ directory
a previously changed directory b home directory
c root directory d user directory
183. which command will change directory to previously changed directory ?
a cd - b cd ~
c cd / d cd
184. if we give command cd /var/www, then ?
A. it will change to var directory
B. it will change to directly www directory
C. it will change to www directory within var directory
D. none
185. which of the following command is right to change directory ?
a cd / b cd -
c cd d all of above
186. in cd .. command , double dot (..) stands for the _______ directiory.
A child b parent
c base d main
187. if your current working directory is home/data/hetvi/dhatri and to change it to home
directory, which command used ?
a cd.. b cd../../
c cd../../../ d cd../../../../
Remove Directory
188. an empty directory can be deleted by using the command __
a rmdir b rm
c delete d remove all
189. if directory is not empty then it will display ?
A. ‘rmdir : failed to remove ‘science’: directory not empty’
B. ‘rmdir : directory not empty’
C. ‘directory not empty’ fail to remove
D. ‘failed to remove ‘science’: directory not empty’
190. if directory is not empty then what we have to do ?
A. it can not be deleted
B. first delete all contents within directory
C. reissue the command
D. both b and c
191. how we can delete three directories ramesh, paresh and meric ?
a remove ramesh paresh mahesh b delete ramesh paresh mahesh
c rmdir ramesh paresh mahesh d none
192. to delete a non-empty directory with all its contents we can use the __
a rmdir b rm –all
c rm –r d rm –d
Naming Conventional
193. in Linux , a file name can consist of up to ______ character .
a 64 b 102
c 114 d 255
194. _________ types of character are permitted for file name.
a any control character b non-printable character
c both (a) & (b) d none of these
195. Linux can practically consist of any ASCII character except the __ character.
A backslash b null
c both (a) & (b) d none of these
196. _____ is the valid file names in Linux.
A .file1 & file2. B ^file^-++ & _{}0
c test$# & ab.cd.ef d all of these
197. which of the following is valid file name ?
a hello$$$ b .first & .second
c ab.cd.ef d all of above
198. what is the full form of ASCII ?
a merican standard code for b merican standard course for
information interchange information interchange
c merican standard code for d merican standard code for
interchange information international information
199. which character recommended for file name ?
a alphabetic characters b numerals & period (.)
c hyphen (-) & underscore (_) d all of these
200. Linux is ______ case sensitive.
A incorrectly b wrongly
c strictly d inexactly
201. in Linux math, math and math are treated as ___ variables ?
a different b same
c standard d numerical
202. directories/files named math, math and math can coexist at same level ?
a true b false
c some times d none
6.6Working With Files
Here students will know commands of files.
203. directories generally works as a __ ?
a files b container
c pair d all of above
204. for proper arrangement and easy access data can be stored in ?
a files b directories
c both a and b d none
205. data stored in file and directories for ?
A. proper management
B. easy access
C. both a and b
D. none
206. which of the following editors are used to create the file ?
a nano b pico
c vi or vim d all of above
207. which command will create the file quickly ?
a cat b mkdir
c rmdir d rm
208. cat command is used to display the content of __ files ?
a big b numerical
c small d alphabetical
209. what is the use of cat command
a create a file b concatenate two files
c appending contents to a file d all of these
210. which command used to create a file names radhe?
A cal > radhe b cet > radhe
c can > radhe d cat > radhe
211. ctrl + d command will take you back to ___ ?
a command prompt b previous directory
c home directory d root directory
212. in Linux, which key indicates the end of file character ?
a ctrl + c b ctrl + d
c ctrl + x d ctrl + a
213. in cat > hetvi command > symbol is known as ________ operator.
A redirections b relational
c logical d parameter
214. > sign is used in cat command to instruct __ that redirection is required ?
a kernel b shell
c both a and b d none
215. the redirection operator tells that __
a enter the data b enter the file name
c input should goto specified file d data will goto specified directory
216. which command will display the content of the file radhe ?
a cat radhe b cat > radhe
c cat >> radhe d none
217. the cat command used without greater than (>) sign it displays __?
A name of the file b last line of file
c content of the file d none
218. which command used to append content in as existing file ?
a cal >>radhe b cet >>radhe
c can>> radhe d cat>>radhe
219. __ sign is used to add the data at the end of file ?
a < b <<
c >>  d >
220. >> sign is known as __ operator ?
a append output redirection b add output redirection
c both a and b d none
221. if we give cat > hetvi and if hetvi file is there then what will happen ?
a it will give error b it will append data
c it will overwritten the file d it will delete the file
222. if we give cat hetvi harshvi > radhe, then what will happen ?
E. the data of hetvi will store in to file radhe
F. the data of harshvi store in to file radhe
G. the data of hetvi and harshvi will merge and store in to file radhe
H. the data of harshvi and hetvi will merge and store in to file radhe
223. which command used to create file3 that contains the text of both the files namely file1 and
file2 ?
a cat file1 file2 > file3 b cat file1 file2 file3
c cat . file1 file2 file3 d cat file1> file2 file3
Deleting The File
224. the __ command is used to delete/remove one or more files.
A rm b rmdir
c delete d remove
225. which command will be used to delete files test1,test2,test3
a rm test1 test2 test3 b rm test1, test2, test3
c m test1 test2 test3 d m test1, test2 ,test3
226. which command will be used to delete all the three files test1 ,test2 , test3 as argument
a rm test ? b rm test *
c rm [test] d rm [test1-yest3]
227. which command will be used to delete all the files from the current directory ?
a rm ? b rm ?*
c rm [*] d rm *
228. 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 *
229. which bcommand is used to delete directory and alomg with all its contents ?
a rm -I filename b rm –r dirname
c rm –r * d rm –rf *
230. which command is usedto delete all contents within the current directory ?
a rm –I filename b rm –r filename
c rm –r * d rm –rf *
231. which command is used to deletes the contents even if it is write protected ?
a rm –I filename b rm –r filename
c rm –r * d rm –rf *
232. ___ is a wildcard character.
A *  b /
c - d %
Moving Around File System
233. _ command gives the list of the contents in the current or a specified directory.
A rm b ls
c dir d list
234. __ command used to create hidden file .
a cat > .intro b cat>intro
c cat>*intro d cat>-intro
235. ……. Symbol is treated as hidden file .
a . b ..
c / d *
236. which command is used to see the hidden files ?
a ls –l b ls –a
c ls –r d ls –f
237. .. entries are automatically created in the directory whenever the directory is created .
a 4 b 3
c 2 (.and ..) d 6
238. 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
239. which command is use to lists all the files in which the first character of the filename matches
with any of the given alphabets within the square brackets the remaining part of the file name can
contain any valid ASCII character ?
a ls ~ b ls [svics]*
c ls [n-s][5-7]?? D ls-r
240. which command is use to lists all file with 4 character filename with the condition that tha first
character is in the range of 5 to 7 , where as the third and fourth characters are any valid ASCII
character ?
a ls~ b ls [svics]*
c ls [n-s][5-7]?? D ls –r
241. which command is use to list the files by sorting them in reverse order ?
a ls ~ b ls [svics]*
c ls [n-s][5-7]?? D ls –r
242. _command is use to list the file sorting them based on their modification time
a ls –t b ls f
c ls – l d ls –r
243. which command is use to list the files and mark all executable file with * and directories with /
symbol ?
a ls –t b ls –f
c ls –l d ls –r
244. which command is use to list one line per line ?
a ls -t b ls –f
c ls –l d ls –r
Pattern Matching – The Wildcards
245. __ signs are used as wildcards
a * b ?
c = d (a) and (b)
246. which wildcard characters used for matching a pattern as per requirement ?
a * b ?
c = d (a) and (b)
247. which wildcard use to match any number o characters including none ?
a * b ?
c [abc] d [!abc]
248. which wildcard use for a single charscter
a * b ?
c [abc] d [!abc]
249. which wildcard use match a single character – either a,b or c ?
a [ab]c b [abcd]
c [abc] d [!abc]
250. which wildcard use to match single character other than a,b or c?
a * b ?
c [abc] d [!abc]
251. which wildcard match any single character within the ASCII range of the characters p to s .
a [p-s] b [!p-s]
c [p*s d [p#s]
252. which wildcard use a single character that is not within the ASCII range of the characters p to s
?
a [p-s] b [!p-s]
c [p*s] d [p#s]
6.7 Manipulating Files And Directory
Here students will understand commands of manipulating file and
directories.
253. which command copies a file or group of files ?
a cp b copy
c photocopy d duplicate
254. ____ command in Linux creates an execute image of a file on the disk with a different file mane.
A cp b copy
c move d all of the above
255. cp command creates an exact image of a file on the disk with a ___ file name.
a same b special
c different d extra
256. cp command needs ____________ arguments.
A two b three
c four d five
257. in cp command , which is the first argument ?
a destination file b source file
c (a) or (b) d none of these
258. in cp command , which is the second argument ?
a destination file b source file
c (a) and (b) d none of these
259. which command will be used to create a copy of file called hetvi with new file shah ?
a copy shah hetvi b copy nilesh shah
c cp shah hetvi d cp hetvi shah
260. in cp hetvi shah command if shah file already exists then what happen ?
a file will overwritten b file will appended
c file will be deleted d it will give error message
261. which command will be used to copy files test1,test2,test3 to the directory named hetvi ?
a cp hetvi test1 test2 test3 b cp hetvi test1,test2,test3
c cp test1 test2 test3 hetvi d copy test1 test2 test3 hetvi
262. in cp test1 test2 test3 hetvi command if hetvi directory is not there then__ ?
a files will be copied b files will not copy
c file will be deleted d it will give error message
263. which of the following command will copy the radhe.txt to current directory ?
a cp/11/com/eng/radhe.txt . b cp radhe.txt .
c cp . radhe.txt d none
264. which sign indicates at end refers to the current directory ?
a . b ,
c - d +
265. __ command will copy file radhe within directory eng with name hetvi ?
a cp radhe / hetvi b cp radhe eng/hetvi
c cp eng/hetvi radhe d cp eng/radhe/hetvi
266. __ command will copy file radhe within directory eng with same name ?
a cp radhe / eng b cp eng / radhe
c cp radhe eng d none
267. in cp radhe eng which is known as directory ?
a radhe b eng
c both a and b d none
268. if we give cp –r eng neweng command, what is output ?
A. the output of neweng will copied to eng
B. the files of eng will sorted in reverse order
C. the files of eng will stored in neweng in reverse order
D. eng directory along with its contents copied as neweng directory
Renaming And Moving Files
269. which command will be used to rename a file or directory ?
a rename b mv
c move d rd
270. to rename the me hetvi to shah , which command will be used ?
a mv hetvi shah b mv shelst dhatri
c mv hetvi shah d m hetvi dhatri
271. what is use of mv command ?
a rename a file b rename directory
c both a and b d paste the file
272. which command will not occupy additional space ?
a cal b cat
c mv d none
273. __command will be used to move files test1,test2,test3 to directory hetvi ?
a mv test1,test2,test3 hetvi b move test1 test2 test3 hetvi
c mv test1 test2 test3 hetvi d mv tejas test1 test2 hetvi
274. __command will rename a directory maths to mathematics ?
a nv maths mathematics b mv maths mathematics
c mv mathematics maths d none
Piping Output
275. which command is used to view one page contents on the screen at a time ?
a more b move
c page d view
276. the more command can be used to display the contents of file ……….
A width wise b name wise
c page wise d type wise
277. which key is used to view the preview pages in more command ?
a f b b
c p d m
278. which key is used to view the next page in more command ?
a m b p
c b d f
279. to view the file hetvi.txt as page wise , which command will be used ?
a more hetvi.txt b move hetvi.txt
c page hetvi.txt d pagewise hetvi.txt
Compare Two Files
280. cmp command is used to compares two files and writes the result to ?
a standard output b printer
c monitor d both a and b
281. __command is used to compares two files of any type and writes the result to the standard
output ?
a diff b cmp
c more d compare
282. if two files compared and differ in content the what it will display ?
a byte b line number
c both a and b d none
283. if two files compared and differ in content then what it will display ?
A. the byte and line number at which first dissimilarity occurred
B. the line at which dissimilarity occurred
C. the word which is differ in both the files
D. the byte at which dissimilarity occurred
Difference (Diff)
284. the extension of the cmp command is the ……. Command .
a diff b cmp
c more d compare
285. the …….. command compares two files and displays the contents of both files indicating where
the difference lies .
a diff b cmp
c more d compare
286. __ is right command to find the difference in radhe.txt and hetvi.txt ?
a diff radhe.txt hetvi.txt b radhe.txt diff hetvi.txt
c radhe.txt hetvi.txt diff d hetvi.txt diff radhe.txt
287. which sign indicate first file contain the text which is not there in second file ?
a + b <
c > d -
288. output shows with > sign means ?
A. text in second file is not there in first file
B. text is not proper typed
C. text in first file is not there in second file
D. redirection operator
289. which sign indicate second file contain the text which is not there in first file ?
a + b <
c >  d -
Counting Words, Line And Characters In File
290. which command will be used to count the number of lines , words and characters in the
specified file or files ?
a wf b wa
c wc d wl
291. wc command comes with _________ options .
a two b three
c four d five
292. which option will be used for counting lines with wc command ?
a wc –l b wc —c
c wc –a d wc —w
293. which option will be used for counting a character with wc command ?
a wc –a b wc —c
c wc –l d wc —w
294. which option will be used forn counting words with wc command ?
a wc –c b wc —a
c wc –w d wc l
295. with which options wc command is used ?
a -l b -w
c -c d all of these
296. if we give wc –c –w –l hetvi.txt then what will be output ?
a character, words, lines b words, characters, lines
c lines, characters, words d lines, words, characters
297. which is equivalent to wc –l –w –c hetvi.txt ?
a wc –lwc,hetvi.txt b wc –lwc / hetvi.txt
c wc –lwc hetvi.txt d wc –l, –w,-c hetvi
298. what is the meaning of ls –l ?
a long list b last list
c local list d list of starting with l character
299. output of ls –l will give clear idea about __ in our file system ?
a directory b data
c object d all of these
300. an object can be categorized into __ ?
a regular file b directory
c process d all of above
301. ls –l output will show us ?
A. owner of object
B. size of object
C. date and time on which created
D. all of above
302. we can also see the ___ in the output of ls –l ?
a name of file b permission of file
c time of file created d all of these
303. the first character in the ls –l is known as
a directory b file
c file type d wild card
304. the character ……… in the first column refer to a file .
a - b *
c d3 d all of these
305. the character ….. in the first column refer to a directory.
A - b *
c d d all of these
306. the character ….. in the first column refer to a process.
A - b *
c p d all of these
307. after first character how many characters will tell about permission of object ?
a 5 b 6
c 9 d 8
308. in ls –l output, the 9 characters after first character will mention __
A. size of object
B. name of object
C. permission to object
D. none
309. an object in Linux has …………. Permissions.
A 1 b 2
c 3 d 4
310. which character option means to permit it to write the file ?
a w b p
c x d r
311. which character option means to permit to execute the file ?
a p b e
c x d w
312. which character option means to permit to read the file ?
a r b e
c x d w
313. the set of three characters after the file type show in column ………. Tells which permission the
owner of the file has .
a 2 to 4 b 5 to 7
c 8 to 10 d 11 to 13
314. owner of the file is ___
a person who had modify b person who had created
c person who had copied d none
315. ‘w’ permission means write and it also include __ ?
a read file b delete file
c execute file d all of above
316. 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 (#)
317. the set of three characters after the file type show in coloum ……. Tells which permission the
group of the file has .
a 2 to 4 b 5 to 7
c 8 to 10 d 11 to 13
318. the set of three characters after the file type show in coloum …….. tells which permission the
other user or group the file has .
a 2 to 4 b 5 to 7
c 8 to 10 d 11 to 13
319. file permission can also be given as __ representation.
A numeric b alphabetical
c logical d relational
320. we use ……. Number system for representing permission as numeric value.
A octal b decimal
c binary d all of these
321. if we give in permission 644, then ‘6’ refers to ?
a group b other
c user d all of these
322. if we give in permission 0644, then user will get which permission ?
a write b read
c read and write d execute
323. which octal number allow no permission assigned ?
a 0 b 1
c 2 d 3
324. which octal number allow only execute access ?
a 0 b 1
c 2 d 3
325. which octal number allow only write access ?
a 0 b 1
c 2 d 3
326. which octal number allow write and execute access ?
a 0 b 1
c 2 d 3
327. which octal number allow only read access ?
a 4 b 5
c 6 d 7
328. which octal number allow read and execute access ?
a 4 b 5
c 6 d 7
329. which octal number allow read and write access ?
a 4 b 5
c 6 d 7
330. which octal number allow everything ?
a 4 b 5
c 6 d 7
Changing Permission (Chmod)
331. the operation of changing the permission is also known as ?
a change permission mod b change mode operation
c change name operation d change permission operation
332. which command used to change the permission of a file ?
a chmod b change
c permission d command
333. to make hetvi .txt file into read only file, which command will be used ?
a chmod ugo-w hetvi.txt b chmod ugo-o hetvi.txt
c chmod ugo-r hetvi .txt d chmod vgo-w hetvi.txt
334. in chmod command what is the meaning of character ‘u’ ?
a username b user
c ubuntu d all of above
335. in chmod command what is the meaning of character ‘g’ ?
a username b user
c group d other
336. in chmod command what is the meaning of character ‘o’ ?
a other b user
c ubuntu d group
337. to assign permission to all in chmod command which option is used
a a b all
c ugo d none
338. which permission is given to any file in Linux?
A to read a file ( r) b to write(w)
c to execute(x) d all of above
339. what is the meaning of ugo, in chmod ugo-w hetvi.txt permission command ?
a user, group, open b user,group,owner
c user,group,operater d user,group,option
340. if we give ls –l hetvi.txt then what it will display by default in terms of permission ?
a -rw-r—r-- b -rw-rw-r--
c -rw-r—rwx d -r—r—r--
341. which sign is used to add or assign the permission ?
a - b + 
c $ d none
342. which sign is used to remove the permission ?
a -  b +
c $ d none
343. which sign is used to assign absolute permission ?
a - b +
c = d none
344. which command is used to assign write and execute permission to the owner of the radhe.txt
file ?
a $chmod ugo+wx radhe.txt b $chmod u+wx radhe.txt
c $chmod u+write radhe.txt d $chmod u+x radhe.txt
I/O Redirection
345. Linux considers ______ as its standard input device .
a keyboard b mouse
c scanner d pen drive
346. Linux consider _______ as its standard output device.
A printer b plotter
c moniter d speaker
347. if any command is executed in Linux, its input will be taken from the ______ .
a keypad b mouse
c enter d keyboard
348. if any command is executed in Linux, its output will be displayed on the
a speaker b monitor
c plotter d printer
349. Linux provides __ symbols to change the standard input flow.
A assignment b logical
c redirection d all of above
350. __ symbol implies redirection of output.
A >  b <
c >> d <<
351. …… symbol implies redirection of input .
a > b <
c >> d <<
352. which facility of Linux helps in connecting commands with other command ?
a execute b base
c direction d piping
353. using a pipe symbol (|) output of one command can be supplied as input fore another
command and this process is known as ________ in Linux .
a direction b jointing
c piping d concocting
354. the process o converting output of one command into input of another command i known as
__ ?
a direction b jointing
c piping d concocting
355. real power of pipe facility can be availed when we use it along with ___
a direction b jointing
c filters d concocting
6.8 Filters
Here students will know different filters used in linux.
356. which command accept data from standard input manipulate it and write the resulets to
standard output ?
a filters b users
c writers d beginners
357. Linux comes with _________ filters .
a head & tail b cut & paste
c sort & uniq d all of these
358. the ___ command display the beginning lines of the file .
a title b head
c body d input
359. the head command displays first ______ lines by default .
a eight b nine
c ten d eleven
360. which command will used to display first ten lines of the hetvi.txt file ?
a hetvi.txt head b head hetvi.txt ten
c head hetvi.txt d head hetvi.txt+10
361. which command will be used to display first three lines of the hetvi,txt file ?
a head +3 hetvi.txt b head -3 hetvi.txt
c head hetvi.txt +3 d head hetvi.txt -3
362. which command will be used to display the lines from the end of the file ?
a tail b end
c last d final
363. the tail command displays last ______ lines by default .
a eight b nine
c ten d eleven
364. which command will be used to find last ten lines from the hetvi.txt file ?
a tail hetvi.txt -10 b tali ninesh.txt +10
c tail | hetvi.txt d tail hetvi.txt
365. which command will be used to display lines from 5th line onwards ?
a tail -5 filename b tail +5 filename
c tail filename -5 d tail filename +5
366. head and tail command will slide the file ___?
a vertically b horizontally
c both a and b d none
367. which command will be used to extract specific characters from each line of the file?
a cut b copy
c paste d connect
368. which command will be slide the file vertically ?
a cut b cp
c head d tail
369. cut command will give exact and precise output if we have specific __?
a information b symbol
c delimiter d dots
370. if we arrange content in proper way using symbol then it will work as ?
a paste b cutter
c head d delimiter
371. which option is useful to extract specific characters from file ?
a -c b -d
c -e d -f
372. which command will be used to extract first 15 characters from each line ?
a cut +c 1-15 radhe.txt b cut –c 15- radhe.txt
c cut –c 1-15 radhe.txt d none
373. which option is useful for fixed length fields ?
a -c b -d
c -e d -f
374. the cut command can treat values separated by the delimiter as __
a symbol b separate field values
c field d none
375. which option is useful to specify delimiter appearing in a command ?
a -c b -d
c -e d -f
376. which option is useful to specify field numbers to be displayed ?
a -c b -d
c -e d -f
377. which command is used to display 2nd and 5th field from the hetvi.txt file ?
a $cut -d -f 2,7 hetvi.txt b $cut –d “,” –f 2,7 hetvi.txt
c $cut –d “,” 2,7 hetvi.txt d $cut “,” –f 2,7 hetvi.txt
378. which option in command imply that to display all fields after 7(include 7) ?
a $cut -d -f 7- hetvi.txt b $cut –d “,” –f 7+ hetvi.txt
c $cut –d “,” –f 1-7 hetvi.txt d none
Joining Contents
379. which command is a way of pasting two file together ?
a paste b joint
c dual d common
380. what we have to see while using paste command ?
a both file must exits b both file have different lines
c both file have same lines d common
Ordering Output (Sort)
381. which command will be used to order the data in ascending or descending sequence
a arrange b sequence
c sort d type
382. by default, sort command reorders lines in ………. collating sequence .
a ascending b descending
c uppercase d ASCII
383. when sort command used without any options it sorts the files based on ?
a entire line b first character of line
c first word of line d none
384. in ASCII ,sorting first applies on ………
a whitespace,numerals,uppercase,lowercas b whitespace,uppercase,lowercase,numerals
e
c numerals,uppercase,lowercase,whites pace d whitespace,numerals,lowercase,uppercase
385. the …… order is applied only at the time of displaying the output.
a sort b cut
c paste d head
386. to display the content in reverse order which option is used ?
a -l b -r
c -d d -f
387. the sort command is mostly used in ___ with other commands.
a conjunction b reverse
c ascending d descending
388. if we write $cut –d “:” –f 2-4 address.txt then it will display ?
a second and fourth column b second, third, fourth column
c second and all column after 4 d none
Character Conversion (Tr)
389. command used as filter work with a __ ?
a line b column
c both a and b d none
390. which command will be used to translate string or patterns from one set of characters to
another ?
a transfer b transition
c tracing d translate (tr)
391. if we give command $cat address.txt | tr –s ‘[,]’ ‘[ ]’, then what will be output
A. it will display the content of file with space instead of ‘,’
B. it will display the content of file with ‘,’ instead of space
C. it will display the content of file without delimiter
D. none
392. the …….. option squeezes the additional space visible in the actual file .
a -r b -s
c -p d -a
393. in case we need to save the translation visible we can redirect the output to __
a new file b old file
c both a and b d none
Pattern Matching (Grep)
394. __ operation is one of the most widely used operation in GUI ?
a grep b find
c search d all of above
395. in GUI applications, use __key combination to find keyword within files.
a ctrl +f b ctrl +h
c ctrl +s d ctrl +q
396. which command comes from a command in the unix text editor –ed-, which is used to search a
pattern ?
a grep b gerp
c grop d grpo
397. in grep command, string that we are looking for is shown in __ color ?
a green b red
c yellow d blue
398. in grep command, string that we are looking for is written in __ ?
a ‘‘ b <>
c ““  d none
399. in grep command, string are __ ?
a case sensitive b not case sensitive
c space sensitive d none
400. which command will be used to display the details of student named “shah” from the hetvi.txt
file ?
a grpe “shah” hetvi.txt b grep “shah” hetvi.txt
c grop “shah” hetvi.txt d grep “shah’ hetvi.txt
401. which option used to return only number of matches without quoting text ?
a -c b -i
c -l d -n
402. which option used to ignore case while searching ?
a -c b -i
c -l d -n
403. which option used to return only file names containing a match without quoting the text ?
a -c b -i
c -l d -n
404. _option used to return the line number of matched text as well as the text itself
a -c b -i
c -l d -n
405. which option used to return all the lines that do not match the text ?
a -v b -w
c -o d -n
406. which option used to return lines which display only whole words ?
a -v b -w
c -o d -n
407. which option used to shows only the matched string ?
a -v b -w
c -o d -n
408. we want detail about the persons who are staying in society that has ‘jal’ as it’s starting and ‘i’
as its end , then which expression can be used ?
a grep “jal.*l” address.txt b grep “jal,l” address.txt
c grep “*l.jal” address.txt d grep “jal.l*” address.txt
409. a regular expression is normally followed by one of several …….. operators.
a regular b repetition
c not regular d all of these
Searching A File Or Directory (Find)
410. which command helps to find the location of the file or a directory created earlier ?
a find b search
c name d all of these
411. if the search file exists then what it will display ?
a name of file b name of directory
c display prompt d path will be given
412. __command is right to find the files starting with ‘h’ ?
a $find h* b $find –name h*
c $find –f *h d $find –name *h
413. if we give $find –name intro* -type f, what it will display ?
a directories starting with ‘f’ b files starting with ‘f’
c files starting with intro d directories starting with intro
414. which command is used to search all directory and subdirectory available on root only ?
a find / -type d b find .mtime -l
c find . –mtime +l d find -executable
415. which command is used to search object modified within the past 24 hours ?
a find / -type d b find .mtime -l
c find –mtime +l d find -executable
416. which command is used to search object modified more than 48 hours ago ?
a find / -type d b find .mtime -l
c find . –mtime +l d find –executable
417. __command will search script.sh file into dir1 and dir2 directories ?
a find ./dir1 ./dir2 –name script.sh b find ./dir1 ./dir2 script.sh
c find ./dir1 ./dir2 –file script.sh d none
418. __ command will seach for files of 0 byte and delete them ?
a find –size 0 -delete b find –size 0
c find 0 –delete –size d none
419. which command is used to search for the executable file in current directory ?
a find / -type d b find .mtime -l
c find . –mtime +l d find -executable

You might also like