0% found this document useful (0 votes)
116 views

BCA 603: CORE 26 (B) - Linux Operating System Multiple Choice Questions

This document contains 65 multiple choice questions about Linux operating system commands and concepts. It tests knowledge of basic commands for file manipulation, text editing, user and directory management, and system configuration. It also covers topics like Linux architecture, filesystem structure, package management with RPM, and key founders and organizations in Linux development like FSF and Linux Kernel creator Linus Torvalds.

Uploaded by

G Rahul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views

BCA 603: CORE 26 (B) - Linux Operating System Multiple Choice Questions

This document contains 65 multiple choice questions about Linux operating system commands and concepts. It tests knowledge of basic commands for file manipulation, text editing, user and directory management, and system configuration. It also covers topics like Linux architecture, filesystem structure, package management with RPM, and key founders and organizations in Linux development like FSF and Linux Kernel creator Linus Torvalds.

Uploaded by

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

BCA 603 : CORE 26 (B) - Linux Operating System

Multiple Choice Questions


1. What command is used to count the total number of lines, words, and characters contained
in a file?
A
countw
.
B.wcount
C.wc
D
count p
.
E. None of the above
Answer: Option C
2. What command is used to remove files?
A
dm
.
B.rm
C.delete
D
erase
.
E. None of the above
Answer: Option B
3. What command is used to remove the directory?
A
rdir
.
B.remove
C.rd
D
rmdir
.
E. None of the above
Answer: Option D
4. What command is used with vi editor to delete a single character?
A
x
.
B.y
C.a
D
z
.
E. None of the above
Answer: Option A
5. What hardware architectures are not supported by Red Hat?
A
SPARC
.
B.IBM-compatible
C.Alpha
D
Macintosh
.
E. None of the above
Answer: Option D
6. How can you add Amit, 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
Answer: Option D
7. How could you install the file ipchains-1.3.9-5.i386.rpm?
A
rpm -qip ipchains
.
B.rpm -Uvh ipchains
C.rpm -i ipchains* .i386.rpm
D
rpm -e ipchains-1.3.9-5.i386.rpm
.
E. None of the above
Answer: Option C
8. What does FSF stand for?
A
Free Software File
.
B.File Server First
C.First Serve First
D
Free Software Foundation
.
E. None of the above
Answer: Option D
9. What command do you use to create Linux file systems?
A
fdisk
.
B.mkfs
C.fsck
D
mount
.
E. None of the above
Answer: Option B
10. Which of the following command can you execute to count the number of lines in a file?
A
lc
.
B.wc - l
C.cl
D
count
.
E. None of the above
Answer: Option B
11. Which of the following is not a communication command?
A
grep
.
B.mail
C.mesg
D write

.
E. None of the above
Answer: Option A
12. What command is used to display the characteristics of a process?
A
au
.
B.ps
C.du
D
pid
.
E. None of the above
Answer: Option B
13. What command is used to list only the files chap0l, chap02 and chap04?
A
ls chap*
.
B.ls chap[124]
C.ls - x chap0[124]
D
ls chap0[124]
.
E. None of the above
Answer: Option C
14. What command is used with vi editor to replace text from cursor to right
A
S
.
B.s
C.R
D
r
.
E. None of the above
Answer: Option C
15. What command is used to sort the lines of data in a file in alphabetical order?
A
sort - r
.
B.st
C.sh
D
sort
.
E. None of the above
Answer: Option D
16. What command is used with vi editor to save file and remain in the editing mode?
A
x
.
B.q!
C.:w
D
:q
.
E. None of the above
Answer: Option C
17. What command is used with vi editor to move back to the beginning of a word?
A

B.e
C.a
D
b
.
E. None of the above
Answer: Option D
18. What command is used with vi editor to search a pattern in the forward direction?
A
??
.
B.//
C.?
D
/
.
E. None of the above
Answer: Option D
19. What command is used to add printing jobs to the queue?
A
Lpd
.
B.Lpr
C.Lpq
D
Lpc
.
E. None of the above
Answer: Option B
20. What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to
her/his mail reader?
A
POP3
.
B.FTP
C.MAP
D
All of the above
.
E. None of the above
Answer: Option A
21. What project is currently developing X server support?
A
XFree86 Project, Inc.
.
B.RHAD Labs
C.GNOME Project
D
All of the above
.
E. None of the above
Answer: Option A
22. What X-based tool is available for configuring the X Window system?
A
XConfigurator
.
B.XF86Setup
C.xf86config
D
All of the above
.
E. None of the above

Answer: Option B
23. Which of the following server is used with the BIND package?
A
httpd
.
B.shttp
C.dns
D
named
.
E. None of the above
Answer: Option D
24. What port does squid listen, by default?
A
4322
.
B.2314
C.7334
D
3128
.
E. None of the above
Answer: Option D
25. Which of the following is the main Apache configuration file?
A
/etc/apache.conf
.
B./etc/httpd/config.ini
C./etc/httpd/conf/httpd.conf
D
/etc/srm.conf
.
E. None of the above
Answer: Option C
26. Which of the following command is used to access an SMB share on a Linux system?
A
NFS
.
B.SMD
C.smbclient
D
smbserver
.
E. None of the above
Answer: Option C
27. Which of the following command is used to see the services running in NFS server?
A
rpcinfo
.
B.serverinfo
C.NFSinfo
D
infserv
.
E. None of the above
Answer: Option A
28. In which tcp_wrappers file can you specify to allow all connections from all hosts?
A
/etc/hosts.allow
.

B./etc/hosts.deny
C./etc/hosts
D
/etc/tcp.conf
.
E. None of the above
Answer: Option A
29. What does GNU stand for?
A
GNU's not Unix
.
B.Greek Needed Unix
C.General Unix
D
General Noble Unix
.
E. None of the above
Answer: Option A
30. What command is used to remove jobs from the print queue?
A
lpq
.
B.lpr
C.lprm
D
lpc
.
E. None of the above
Answer: Option C
31. How can you navigate around virtual consoles?
A
Alt+Function Key
.
B.Ctrl+Function Key
C.Ctrl+Alt+Del
D
Alt+a+w+Function Key
.
E. None of the above
Answer & Explanation
Answer: Option A
32. Which of the following NIS clients, finds and stores information about an NIS domain
and server?
A
ypwhich
.
B.ypbind
C.ypcat
D
yppoll
.
E. None of the above
Answer: Option B
33. RPM
A
stands for Red Hat Package Manager
.
B.is used to install, uninstall, and manage packages
C.is used to keep track of the users
D
assigns a dynamic IP address
.
E. None of the above

Answer: Option A
34. What command is used to query for a specific package with RPM?
A
rpm -q
.
B.rpm -a
C.rpm -d
D
rpm -1
.
E. None of the above
Answer: Option A
35. Who founded the Linux Kernel?
A
Bill Gates
.
B.Ben Thomas
C.Richard Stallman
D
Linus Torvalds
.
E. None of the above
Answer: Option D
36. _____ tool allows you to change your default X Window desktop.
A
utilinux
.
B.cempre
C.switchdesk
D
window
.
E. None of the above
Answer: Option C
37. In what file can you specify which users are not allowed to access a system via FTP?
A
/etc/ftpusers
.
B./etc/hosts.deny
C./etc/ftpaccess
D
All of the above
.
E. None of the above
Answer & Explanation
Answer: Option A
38. Which program is used to schedule particular jobs or programs at particular times on the
system?
A
vi
.
B.Outlook
C.Scheduler
D
cron
.
E. None of the above
Answer: Option D
39. The location of some system configuration and system administrator executable files,
is:
A

B./proc
C./var
D
/sbin
.
E. None of the above
Answer: Option D
40. The location for subdirectories for local programs and executables for user and
administrative commands, is:
A
/usr
.
B./tmp
C./opt
D
/mnt
.
E. None of the above
Answer: Option A
41. Which of the following is not a filter command?
A
sort
.
B.wc
C.grep
D
cat
.
E. None of the above
Answer: Option D
42. 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
Answer: Option A
43. What command is used to change the working directory?
A
cdir
.
B.chdir
C.changedir
D
cd
.
E. None of the above
Answer: Option D
44. 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
Answer: Option C
45. What command is used to count just the number of characters in a file?
A
wc - r
.
B.wc - w
C.wc - c
D
wc - 1
.
E. None of the above
Answer: Option C
46. LILO
A
stands for Linux loader
.
B.is the Linux boot loader
C.is a tool used to boot the Kernel on x86 hardware
D
All of the above
.
E. None of the above
Answer: Option D
47. Which of the following subdirectory(ies) contains the device files?
A
/dev
.
B./bin
C./etc
D
/home
.
E. None of the above
Answer: Option A
48. Which of the following subdirectory(ies) contains the system configuration scripts.
A
/dev
.
B./bin
C./etc
D
/home
.
E. None of the above
Answer: Option C
49. What of the following tool is used to check and repair Linux file systems?
A
mkfs
.
B.fdisk
C.fsck
D
mount
.
E. None of the above
Answer: Option C

50. Which of the following tool is used to partition your hard drive?
A
mkfs
.
B.fdisk
C.fsck
D
mount
.
E. None of the above
Answer: Option B
51. What command is used to display and create files?
A
lyrix
.
B.ed
C.vi
D
cat
.
E. None of the above
Answer: Option D
52. Which of the following command can be used to rename a file in LINUX?
A
ren
.
B.mv
C.remove
D
change
.
E. None of the above
Answer: Option B
53. What command is used to remove a file?
A
del
.
B.mv
C.rm
D
remove
.
E. None of the above
Answer: Option C
54. What command is used to display the top of the file?
A
grep
.
B.more
C.head
D
cat
.
E. None of the above
Answer: Option C
55. Which of the following is the main Apache configuration file?
A
httpd.conf
.
B.apache.con
C./etc/profile
D system.ini

.
E. None of the above
Answer: Option A
56. What command can be used to get information about yourself?
A
which
.
B.pwd
C.i /4
D
who am i
.
E. None of the above
Answer: Option D
57. What command is used to sort the lines of data in a file in reverse order?
A
sort - r
.
B.st
C.sh
D
sort
.
E. None of the above
Answer: Option A
58. What command is used to print a file?
A
lp
.
B.pg
C.prn
D
print
.
E. None of the above
Answer: Option A
59. 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
Answer: Option C
60. What command is used with vi editor to move forward to the end of a word?
A
c
.
B.d
C.b
D
e
.
E. None of the above
Answer: Option D

61. The IP address are based on


A
16-bit addresses
.
B.32-bit addresses
C.64-bit addresses
D
8-bit addresses
.
E. None of the above
Answer: Option B
62. Which daemon is used for the Apache server?
A
apached
.
B.httpd
C.html
D
shttp
.
E. None of the above
Answer: Option B
63. Who founded the FSF?
A
Linus Torvalds
.
B.Richard Stallman
C.Bob Young
D
All of the above
.
E. None of the above
Answer: Option B
64. What command is used to copy a file?
A
tar
.
B.cpio
C.cp
D
copy
.
E. None of the above
Answer: Option C
65. What command is used to display your current working directory?
A
path
.
B.pwd
C.prompt $p$g
D
dir
.
E. None of the above
Answer: Option B
66. What command is used with vi editor to move the cursor to the left?
A

B.k
C.j
D
i
.
E. None of the above
Answer: Option A
67. Which of the following command is used to mount NFS filesystems?
A
nfsmount
.
B.knfsd
C.mount
D
All of the above
.
E. None of the above
Answer: Option C
68. You just added a new user, kara, to the system. What group is kara added to by
default?
A
root
.
B.kara
C.group
D
user
.
E. None of the above
Answer: Option B
69. Which of the following command lists the last 10 lines of a file?
A
grep
.
B.tail
C.head
D
cat
.
E. None of the above
Answer: Option B
70. What command is used to terminate a process?
A
kill
.
B.cancel
C.haltsys
D
shutdown
.
E. None of the above
Answer: Option A
71. What command is used with vi editor to delete three words?
A
3$d
.
B.3 dw
C.3 x
D 3 dd

.
E. None of the above
Answer: Option B
72. 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
Answer: Option B
73. 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
Answer: Option D
74. 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
Answer & Explanation
Answer: Option B
75. What command is used to summarize the disk usage?
A
disk
.
B.du
C.fdisk
D
chkdsk
.
E. None of the above
Answer: Option B
76. What command is used to list the jobs currently in print queues?
A
lpq
.
B.lpr
C.lprm
D
lpc
.

E. None of the above


Answer: Option A
77. What is the following syntax used for command 2> /dev/null
A.Send the output of command to a file called /dev/null
B.Discard standard error entirely.
C.Append the output of command to a file called /dev/null
D.Send error messages from command to a file called /dev/null
Answer: Option D
78. How do you delete your crontab entry?
A.crontab -d
B.crontab -e
C.crontab -r
D.del -crontab
Answer: Option C
79. How do you create a crontab entry?
A.crontab --create
B.crontab -make
C.crontab -e
D.crontab c
Answer: Option C
80. How would you display running httpd processes?
A.ps -C httpd
B.ps -d httpd
C.ps -r httpd
D.ps -D httpd
Answer: Option A
81. How would you avoid accidentally removing files?
A.rm -i
B.rm -chk
C.rm -a
D.rm -r
Answer: Option A
82. How would you search for the string clothes at the end of the line in a file called
shopping?
A.grep 'clothes#' shopping
B.grep 'clothes!' shopping
C.grep 'clothes$' shopping
D.grep 'clothes^' shopping
Answer: Option C
83. Which runlevel allows full multiuser mode but with no graphical login manager?
A.Runlevel 1
B.Runlevel 2
C.Runlevel 3
D.Runlevel 0
Answer: Option C
84. How would you sort a file called shopping on column 3?
A.sort -n 3 shopping
B.sort -k 3 shopping
C.sort -c 3 shopping
D.sort -c3 shopping
Answer: Option B

85. How do you run a job that will continue running even if you are logged out?
A.hup.out command
B.hup command
C.jobc command
D.nohup command
Answer: Option D
86. What is the following syntax used for? command >file1 2>file2
A.Send command's standard output to file1,and its standard error to file2
B.Send command's standard error to file1, and its standard output to file2
C.Send command's standard error to file1, and its standard input to file2
D.Send command's standard input to file1,and its standard output to file2
Answer: Option A
87. What does the 2>&1 at the end of the following command mean?find / -name fred.txt >
names 2>&1
A.Send standard error to a file called &1
B.Append standard error to a file called &1
C.Send standard error to the same place as standard output
D.Send the output of the find command to /dev/null
Answer: Option C
88. Which command is used to unmount a filesystem?
A.dmount
B.dismount
C.unmount
D.umount
Answer: Option D
89. Which file determines what will be run at each runlevel?
A./etc/init/runlevels
B./etc/levels/fstab
C./etc/fstab
D./etc/inittab
Answer: Option D
90. What is the full path for grub's configuration file
A./boot/grub/lsof.conf
B./boot/grub/menu.lst
C./etc/grub/grub.conf
D./etc/grub/grub.txt
Answer: Option B
91. How do you display the kernel release?
A.kernel -r
B.uname -r
C.cat /proc/etc/kernel/release
D.cat /etc/config/kernel/release
Answer: Option B
92. What does the permission string rwxr-xr-- correspond with in octal?
A.742

B.754
C.724
D.624
Answer: Option B
93. How do you display your current crontab entry?
A.crontab -display
B.crontab -d
C.list --crontab
D.crontab -l
Answer: Option D
94. How do you see hidden files in your home directory?
A.ls -h
B.ls -la
C.ls -hn
D.ls -R
Answer: Option B
95. How do you direct the shell to execute a command in the background?
A.Put an & symbol at the end of the command line.
B.Key in fg followed by the command name.
C.Press Ctrl+c after you have keyed in the command.
D.Press Ctrl+d after you have keyed in the command.
Answer: Option A
96. What keyboard combination can be used to exit the shell?
A.Ctrl+E
B.Ctrl+C
C.Ctrl+D
D.Ctrl+Z
Answer: Option C
97. What is the purpose of the following operator? >>
A.It is used to send the output of one command so it becomes the input of a second
command.
B.It is used to send both input and output to the same file.
C.It is used to overwrite the contents of a file.
D.It appends data to a file without overwriting it.
Answer: Option D
98. How would you remove a directory that is not empty?
A.rm -r
B.rm -f
C.rmdir -f
D.rmdir -le
Answer: Option A
99. To display information about the processor itself - display the contents of which file?
A./bin/cpu
B./dev/cpuinfo
C./etc/cpu
D./proc/cpuinfo
Answer: Option D

100. To run date first, and then ls -l, which of the following is correct?
A.date $ ls -l
B.date ; ls -l
C.date - ls -l
D.date > ls -l
Answer: Option B
101. Which file is the list of commands you recently entered stored in?
A..bashrc_history
B..history
C..bash_history
D..bash_list_history
Answer: Option C
102. Which of the following runs the last command you entered?
A.~!
B.!~
C.!!
D...
Answer: Option C
103. What is the shortest command to take you to your home directory?
A.cd ~
B.cd $HOME
C.cd
D..
Answer: Option C
104. How would you switch to virtual terminal 1?
A.Ctrl+Alt+F1
B.Alt+F1
C.Ctrl+F1
D.Shift+Ctrl+F1
Answer: Option A
105. In which directory are the crontab files for users stored on suse linux?
A./var/spool/cron/tabs
B./usr/lib/cron
C./usr/bin/cron/crontabs
D./var/spool/cron/users/tabs
Answer: Option A
106. How would you lock the user account named csm099?
A.usermod -l csm099
B.usermod -L csm099
C.usermod --l csm099
D.usermod -lock csm099
Answer: Option B
107. How do you copy an entire directory structure? E.g. from Project to Project.backup
A.cp -r Project Project.backup
B.cp -e Project Project.backup
C.cp -d Project Project.backup
D.cp -s Project Project.backup
Answer: Option A
108. .............is the command used to create new directory.
A. mkdir
B. newdir
C. dir
D. mk/dir

Answer: Option A
109. Command used to create an empty file.
A. mtfile
B. touch
C. intouch
D. file
Answer: Option B
110. Which is the commmand used to remove or delete file with out confirmation msg ?
A. rm-f
B. rm
C. del
D. remove
Answer: Option B
111. ........command is used to show the logger or user
A. ?
B. who
C. no of
D. ???
Answer: Option B
112. "cat" is the command used to
A. change directory
B. move directory
C. come out of shell
D. see the contents of file
Answer: Option D
113. What command, followed by the directory name is used to access that specific directory?
A. cp
B. cd
C. access
D. acs
E. cdr
Answer: Option B
114. How would you show a list of files and directories that are inside the current directory.
A. list
B. listfiles
C. ls
D. lst
E. listout
Answer: Option C
115. What command allows you to logout of the system?
A. lgt
B. logout
C. logot
D. out
E. lout
Answer: Option B
116. You have written a shell script that must be run as root in order to work properly. What is
the most secure way to give a normal user the ability to run this program?
A. Set permissions to 777 on the script

B. Make the user a member of the root group


C. Make the user the owner of the script
D. Set the SUID bit on the script
E. Change the group of the user to same of the owner
Answer: Option A
117. Which of the following modes of operation exist in vi?
A. insert
B. type
C. search
D. remove
E. delete
Answer: Option A
118. Which of the following commands can be used to change the group owner of a file?
A. chown
B. chmod
C. chattr
D. attrch
Answer: Option B
119. Which command to use for complete details of a command on the shell?
A. help
B. ?
C. man
D. hlp
E. info
Answer: Option C
120. You need to change some settings on your Apache server. Which is the best tool to use
for logging in remotely?
A. rsh
B. ssh
C. rlogin
D. telnet
E. login
Answer: Option B
121. Which of the following runlevels will reboot the system?
A. 0
B. 2
C. 4
D. 6
E. 1
Answer: Option D
122. You want to change the permissions on the file named fifteen so that root has all
permissions and they are denied all other users. Which command should you use?
A. chmod fifteen 700
B. chmod 100 fifteen
C. chmod 700 fifteen
D. chmod fifteen 100
E. chmod 770 fifteen
Answer: Option C
123. Your PC is unable to boot off the Linux install CD. Which utility should be used to
create an installation boot floppy?
A. fdisk

B. cp
C. dd
D. tar
E. boot
Answer: Option A
124. Which of the following below are true functionalities of shell?
A. Authenticates user
B. Interprets commands
C. Allocates time and memory to programs
D. Only a and b
Answer: B
125. A process can run only in the background
A. True
B. False
Answer: B
126. Which of the following below are true functionalities of Kernel?
A. Allocates time and memory to programs
B. Authenticates user
C. Interprets commands
D. All choices are correct
Answer: A
127. To implement new application on IBM z/10. Which of the following options
need to be considered if it to be implemented in Linux?
A. IBMz/OS outperforms Red Hat Linux in commercial workloads
B. IBMz/OS is more expensive, Linux is shareware
C. Red Hat Linux does not support all devices supported by IBMz/OS
D. z/OS is supported by IBM SupportLine, whereas Red Hat Linux can only be
supported by Red Hat
Answer: C
128. A process is identified by a unique
A. Pid
B. Id
C. processed
D. proid
Answer: A
129. Which command reduces the size of a file?
A. pzip
B. gcat
C. pgcat
D. gzip
Answer: D
130. Which of the following has greater market share of Linux SW/HW
A. Linux on z10
B. Linux HP integrity server
C. Linux on AS/400 servers locate
D. Linux on DELL Xeon
Answer: A
131. Which of the following is the BEST way to set up SSH(Secure Shell) for
communicating between System without needing passwords?
A. Use ssh-keygen for generating public-private keys.

B. Disable passwords on specific accounts that will use SSH.


C. Both A and B
D. None of the above
Answer: A
132. Which command is used to see the online manual?
A. man
B. manual
C. *man
D. %man
Answer: A
133. The head command writes the first ____________ lines of a file to screen by
default.
A. Five
B. Twenty
C. Ten
D. Fifteen
Answer: C
134. Which command is used to find what is in your home directory?
A. % List
B. % Is
C. % home
D. Either a or c
Answer: B
135. Pipe symbol is represented by
A. ||
B. |
C. ^
D. $
Answer: B
136. What is the shortcut to the home directory?
A. shift+cd
B. cd+enter key
C. alt+ctrl+cd
D. ctrl+cd
Answer: B
137. What is used to search files for specified words or patterns?
A. Less
B. Srch
C. %src
D. grep
Answer: D
138. cd home to get back to your home-directory?
A. True
B. False
Answer: B
139. > symbol is used to redirect the output of a command
A. True
B. False
Answer: A

140. Which character is used to match exactly one character?


A. |
B. *
C. ^
D. ?
Answer: D
141. The hierarchy of a series of directories branching in a user system starts
from
A. home
B. root
C. /home
D. /root
Answer: C

142. You need to see the last fifteen lines of the files dog, cat and horse.
What command should you use?

A. tail 15 dog cat horse


B. tail -15 /dog cat horse
C. tail -15 dog cat horse
D. tail -15 dog, cat, horse
Answer: Option C
143 What account is created when you install Linux?
A. home
B. user
C. Root
D. media
Answer: Option C
144 By default linux has..........virtual consoles.
A. 4
B. 6
C. 8
D. 10
Answer: Option B
145. Which command is true to create a file?
A. cat >> file name
B. cat < file name<
C. cat < file name
D. cat > file name
Answer: Option D
146. If you type the command cat dog > cat what would you see on your display?
A. Any error messages only.
B. The contents of the file dog.
C. The contents of the file dog and any error messages.
D. Nothing as all output is saved to the file cat.
Answer: Option D
147. The easiest, most basic form of backing up a file is to _____ it to another

location.
A. paste
B. move
C. copy
D. cut
Answer: Option C
148. Which command should you use to check the inode number?
A. ls i node
B. ls -i
C. ls i
D. ls -inode
Answer: Option B
149. Mounting a file system results in the loading of
A. boot block
B. super block
C. i-node table
D. All of these
Answer: Option B
150. Which command is used to extract specific columns from the file?
A. cut
B. grep
C. past
D. cat
Answer: Option A

You might also like