Linux Question with Answer

Linux – Multiple Choice Questions – MCQ – 1 To 30 Questions With Explanation

1. Which tool is used to configure a sound card device?

A. sndconf

B. sndconfig

C. soundconf

D. soundconfig

Answer – – B

Description – The sndconfig tool by Red Hat is used to configure sound devices.

2. Which file holds the Plug-and-Play configuration information?

A. /etc/pcipnp.conf

B. /etc/pnp.conf

C. /etc/rc.d/init.d/isapnp

D. /etc/isapnp.conf

Answer – – D

Description – The isapnp.conf file is stored in /etc.

3. Drivers reside in which environment?

A. Kernel space

B. Device space

C. Application space

D. User space

Answer – – A

Description – Drivers run from kernel space as they provide an interface between hardware and the kernel.

4. How can you view the used IRQs on a system?

A. cat /etc/interrupts

B. cat /proc/irq

C. cat /proc/interrupts

D. echo 1 > /proc/interrupts

Answer – – C

Description – The /proc/interrupts file contains the currently used IRQs. You can view this file using the cat command.

5. Which type of modems are not traditionally supported under Linux?

A. Winmodem

B. 3Com

C. PCI

D. PCMCIA

Answer – – A

Description – Winmodems require software to handle most operations, instead of hardware. Very few have drivers for Linux.

6. Which platforms does Linux currently support?

A. Intel x86

B. Sun SPARC

C. Compaq Alpha

D. All of the above

Answer – – D

Description – Linux supports a variety of hardware platforms.

7. Linux requires a graphical video card with at least 2MB of memory.

A. True

B. False

Answer – – B

Description – Linux requires a graphical video card only if you run X Window or other graphical applications.

8. How many primary partitions can you have on a hard disk?

A. 4

B. 8

C. 16

D. 32

Answer – – A

Description – A hard disk can have up to 4 primary partitions, or 3 primary partitions and 1 extended partition.

9. The Linux kernel cannot be placed beyond what sector, when using some versions of LILO?

A. 512

B. 2,048

C. 999

D. 1,023

Answer – – D

Description – Due to BIOS limitations, not all versions of LILO can boot a kernel past sector 1,023.

10. Which tool does the install of Red Hat use for disk partitioning?

A. Disk Druid

B. YaST

C. fdisk

D. cfdisk

Answer – – A

Description – Disk Druid is used during the Red Hat installation.

11. Which shell is the default shell used on Linux systems?

A. csh

B. rsh

C. bash

D. tcsh

Answer – – C

Description – The default shell used on Linux systems is bash.s

12. Which file contains the available shells for the system?

A. /etc/passwd

B. /etc/command

C. /etc/bash

D. /etc/shells

Answer – – D

Description – The /etc/shells file contains a listing of available shells.

13. Which command is used to change the default shell to the Bourne-Again Shell version 2?

A. chng -s /bin/bash2

B. chsh -s /bin/bash2

C. shell -c /bin/bash2

D. default -shell /bin/bash2

Answer – – B

Description – The chsh command is used to view and change shell settings.

14. What is not a correct format for entering commands at the command line?

A. command

B. command options

C. command arguments options

D. command options arguments

Answer – – C

Description – Command options precede arguments when entered at the command line.

15. Multiple commands can be entered on the same command line when separated by which character?

A. .

B. ;

C. ,

D. \

Answer – – B

Description – A semicolon (;) is used to separate multiple commands on a single command line.

16. Which key combination is used to allow a command to span multiple lines?

A. “”

B. \ Enter

C. / Enter

D. Tab-Enter

Answer – – B

Description – The backslash (\) key causes whichever key follows it to be ignored. This allows the Enter key to be ignored and the command to be continued on the next line.

17. Which key, when pressed once, is used to provide command completion at the command line?

A. Tab

B. Esc

C. Enter

D. Ctrl

Answer – – A

Description – The Tab key provides command completion when pressed once.

18. Which key, when pressed twice, is used to provide command completion at the command line?

A. Tab

B. Esc

C. Enter

D. Ctrl

Answer – – B

Description – The Esc key provides command completion when pressed twice.

19. The Readline Library uses which editor to provide command-line editing?

A. pico

B. vi

C. emacs

D. edit

Answer – – C

Description – By default, the emacs editor is used with the Readline Library.

20. Keyboard bindings can be viewed using which command?

A. bind -keys

B. bind -v

C. display -keys

D. display -v

Answer – – B

Description – The bind -v command allows keyboard bindings to be viewed.

21. Which file contains the system-wide variables on a system with a bash shell?

A. /bash

B. /bin/bash

C. /etc/bash

D. /etc/profile

Answer – – D

Description – The /etc/profile file stores the system-wide variable statements using the bash shell.

22. _______________would run a script called update_mozilla stored in your home directory, from that directory.

Answer – – ./update_mozilla.

Description – When running a command from the pwd, the command name is preceded by a period and slash (./), which specifies that the command is in the current directory.

23. When making changes to an environment variable what command must you use to ensure that those changes are available to the shell?

A. save

B. remember

C. export

D. echo

Answer – – C

Description – The export command causes changes to an environment variable to be made available to the user’s shell.

24. Which environment variable is used to customize the shell prompt?

A. PS1

B. prompt

C. shell

D. display

Answer – – A

Description – The PS1 variable is used to make changes to the prompt.

25. Which file contains the assignment of user’s home directories?

A. /etc/home

B. /etc/profile

C. /etc/passwd

D. /etc/users

Answer – – C

Description – The /etc/passwd file contains the assignment of the user’s home directories.

26. Which command displays a listing of previously entered commands?

A. commands

B. review

C. history

D. export

Answer – – C

Description – The history command displays the previously entered commands that are stored in the user’s .bash_history file.

27. Which key allows you to view the last command entered?

A. down arrow

B. up arrow

C. right arrow

D. left arrow

Answer – – B

Description – The up arrow is used to cycle through previously entered commands.

28. Which command allows you to use the default editor to edit several commands from the history file?

A. history

B. edit

C. fc

D. view

Answer – – C

Description – The fc command allows you to edit previously entered commands using the default editor.

29. It is possible to run commands that are not located in a directory listed in the PATH if you know the full path and command name.

A. True

B. False

Answer – – A

Description – Commands can be run using the full path as long as the user has the necessary file permissions.

30. The ___________ command is used to view a snapshot of the processes running on a system.

Answer – – ps

Description – The ps command is used to view a snapshot of processes running on the system.


31. Which of the following is used to end the 408 process without allowing it to exit gracefully?

A. kill 408

B. kill –15 408

C. kill –1 408

D. kill –9 408

Answer – – D

Description – The –9 signal kills the process without allowing it to exit gracefully.

32. The _______ command runs the netscape process in the background.

Answer – – netscape &.

Description – The & symbol is used to start a process as a background job.

33. Which command is used to set the priority of a process when it is started?

A. jobs

B. renice

C. nice

D. top

Answer – – C

Description – The nice command is used to change the priority level of a process when it is started.

34. Which script generates a Makefile for your specific system?

A. ./gen

B. ./genmake

C. ./configure

D. ./config

Answer – – C

Description – The ./configure script runs through many tests and creates a Makefile for that specific system. The other options are invalid.

35. Which command installs compiled software?

A. make

B. ./install

C. make setup

D. make install

Answer – – D

Description – The make install command installs software that has already been compiled. The make command is used to compile the software.

36. Which packaging system does Red Hat use?

A. rpm

B. deb

C. tgz

D. rhp

Answer – – A

Description – Red Hat created the RPM packaging system. Debian uses .deb packages.

37. Which rpm option is used when you receive strange errors when installing packages, suggesting rpm database corruption?

A. rpm –fixdb

B. rpm –rebuilddb

C. rpm –updatedb

D. rpm –regendb

Answer – – B

Description – In some circumstances the RPM database can be corrupted, and the rpm –rebuilddb command will try to rebuild the database. The other options are invalid.

38. Which methods does RPM support to check package integrity? (Select all that apply.)

A. MD5

B. 3DES

C. PGP

D. GnuPG

Answer – – A,C and D

Description – All three are supported by RPM.

39. The command _____________________ would be entered to install the package named processor-4.2.i386.rpm.

Answer – – rpm -i processor-4.2-i386.rpm or rpm –install processor-4.2-i386.rpm.

40. Which tool is used to update the ld.so.cache file?

A. ldcache

B. ldupdate

C. ldconf

D. ldconfig

Answer – – D

Description – ldconfig creates the ld.so.cache file from ld.so.conf.

41. Which linking method creates smaller executable files?

A. Dynamic

B. Unlinked

C. Variable

D. Static

Answer – – A

Description – Dynamic linking does not compile the libraries into the executable like static linking, therefore making the executable smaller. The other options are invalid.

42. Which command(s) is/are used to remove an RPM package?

A. rpm –uninstall B. rpm –remove C. rpm -e D. rpm -u

Answer – – A and C

Description – Both rpm –uninstall and rpm -e remove RPM packages. The other options are invalid.

43. Which file specifies how an RPM source package is compiled?

A. Makefile

B. spec file

C. config file

D. .conf file

Answer – – B

Description – The spec file has the compilation options. A Makefile is used to compile source code not in RPM format.

44. Which tool is used to convert packages from one system to another?

A. alien

B. dpkg

C. apt

D. Pconvert

Answer – – A

Description – The alien tool converts package files. The dpkg tool is used to manipulate packages in Debian.

45. Which command is used to install a Debian package?

A. apt –install B. dpkg –install C. apt-get -I D. rpm -i

Answer – – B

Description – The dpkg –install command installs Debian .deb packages. The rpm tool is used with RPM packages. There is no -I option for apt-get.

46. Which command removes a Debian package, including its configuration files?

A. dpkg –remove B. dpkg -e C. apt-get purge D. dpkg -P

Answer – – D

Description – dpkg -P purges the package, which removes all files including the configuration files.

47. Which tool provides an easy-to-use interface to access Debian package management?

A. dselect

B. apt-get

C. dpkg

D. gnorpm

Answer – – A

Description – The dselect tool has all the functionality of dpkg, but uses a characterbased graphic interface instead of a command-line interface. apt-get is used to retrieve and install packages. gnorpm is a graphical front end to the rpm tool.

48. To change the sources for apt-get, the ________ file is edited.

A. sources.list

B. apt.sources

C. sources.apt

D. dpkg.sources

Answer – – A

Description – The sources for apt-get are stored in the sources.list file. The other options are invalid.

49. Which apt-get parameter updates the available package database?

A. upgrade

B. refresh

C. reload

D. update

Answer – – D

Description – The update command checks all the sources in the sources.list file and updates the package database accordingly. The upgrade command tells aptget to download and install all packages that are newer than those installed on the system. The other options are invalid.

50. The apt-get tool supports which of the following sources? (Select all that apply.)

A. FTP

B. HTTP

C. NFS

D. CD-ROM

Answer – – A,B,C and D

Description – The apt-get tool can get packages from local NFS and CD-ROM drives and from the Internet via FTP and HTTP.

51. Which command clears old packages from the Debian archives?

A. dpkg -clean

B. apt-get autoclean

C. dpkg -autoclean

D. dselect

Answer – – C

Description – The autoclean parameter removes only old packages that can no longer be retrieved. The other options are invalid.

52. alien supports which of the following package formats? (Select all that apply.)

A. RPM

B. .deb

C. BSD

D. .tgz

Answer – – A,B and D

Description – alien supports Red Hat, Debian, and Slackware package formats, but not BSD.

53. Which command converts an RPM package to Debian format?

A. alien -r package.rpm

B. alien -t package.rpm

C. alien -d package.deb

D. alien -d package.rpm

Answer – – C

Description – The -d option tells alien to create a Debian package. The -r option specifies RPM, and the -t option specifies .tgz.

54. Which of the following would be used to locate the following words: and, made, named, standard?

A. a*d

B. a.*d

C. [a..d]

D. a.d

Answer – – B

Description – In regular expressions, the . is used to specify any character and the * is used to specify any occurrence of the previous character including no occurrences.

55. Which command would search lines 2 through 20 of the file records for the characters 1st and replace them with the characters first?

A. sed ‘s2-20/1st/first/’ records

B. sed ‘2-20s/1st/first/’ records

C. sed ‘s2,20/1st/first/’ records

D. sed ‘2,20s/1st/first/’ records

Answer – – D

Description – When using addressing with the sed utility the line numbers and ranges are specified before the s command. The range is separated by a comma.

56. Which command would separate the file researchpaper into multiple files, each containing 60 lines? (Select all that apply.)

A. split -60 researchpaper

B. split -C 60b researchpaper

C. split -C 60 researchpaper

D. split -l 60 researchpaper

Answer – – A and D

Description – The -l option is used to specify the number of lines contained in each file using split. However, when no option is given the number specified is assumed to be the number of lines.

57. Which utility is used to combines the lines from two files? (Select all that apply.)

A. split

B. join

C. paste

D. cut

Answer – – B and C

Description – The paste and join utilities are used to combine lines from a file. The split command is used to divide a file into multiple pieces. cut removes text from a file.

58. Which of the following would send the data from the ls command to the file myfiles?

A. ls | myfiles

B. ls > myfiles

C. ls < myfiles

D. ls | xargs myfiles

Answer – – A

Description – Pipes are used to send data from one command to another.

59. Which of the following would be used to view the last five lines of the file myfiles?

A. tac myfiles

B. tail myfiles

C. tac -5 myfiles

D. tail -5 myfiles

Answer – – D

Description – The tail command is used to view the end of a file and the -5 option specifies the number of lines to view.

60. Which of the following allows you to view the file myfiles in octal format? (Select all that apply.)

A. od myfiles

B. od -t o myfiles

C. od -t x myfiles

D. od -o myfiles

Answer – – A and B

Description – The od utility is used to view files in octal format by default. The -t option, followed by o, is used to specify octal format.

61. The _______ utility is used to allow a utility to handle more arguments than it normally could.

Answer – – xargs

Description – The xargs utility allows a command to handle more arguments than it would normally be able to process.

62. Which of the following are used to redirect stdout and stderr to a file?

A. <& B. >&

C. |&

D. &&

Answer – – B

Description – The >& characters are used to send both stdout and stderr to a file.

63. Which of the following would alphabetize the file mylist, number the list, and then separate it into files each with 60 lines?

A. sort mylist | nl > -60 lists

B. sort mylist > nl > split -60 > lists

C. sort mylist | nl | split -60 lists

D. sort mylist | nl | tee lists | split -60 lists

Answer – – D

Description – The pipes are used to send data from one command to another, so Answer –s A and B are incorrect. Answer – C does not create two files, so only D is correct.

64. The ___________ utility is used to view a file in reverse.

Answer – – tac.

Description – The tac utility is used to view a file starting at the last line and ending with the first.

65. Which of the following is a metacharacter used with regular expressions? (Select all that apply.)

A. –

B. .

C. *

D. _

Answer – – B and C

Description – The . and * are both metacharacters used with regular expressions.

66. Which utility is used to provide a total count of all lines in a file?

A. nl

B. ln

C. wc

D. tr

Answer – – C

Description – The wc utility is used to provide totals of a file including word count, line count, and byte count.

67. The ____________ utility is used to ensure that files appear the same, regardless of the system used to view them, by changing tabs to spaces.

Answer – – expand.

Description – The expand utility is used to convert tab characters to spaces.

68. Which utility attempts to create lines of equal length throughout a file?

A. nl

B. ln

C. fmt

D. expand

Answer – – C

Description – The fmt utility attempts to create lines of equal length throughout a file.

69. Which utility would be easily used to replace all lowercase letters in a file with uppercase letters?

A. cut

B. sed

C. tac

D. tr

Answer – – D

Description – The tr utility is used to delete and replace characters in a file.

70. Which of the following is used to verify that a file is alphabetized?

A. sort -c

B. sort -d

C. sort -v

D. sort -m

Answer – – A

Description – Use the -c option with the sort utility to verify that a file has been sorted.

71. The __________ utility can provide information used for troubleshooting by saving output piped into another command.

Answer – – tee.

Description – The tee utility is used to send output from a command to both a file and stdout.

72. The * symbol used in regular expressions works the same as the * wildcard used at the shell prompt.

A. True

B. False

Answer – – B

Description – The metacharacters used in regular expressions have different meanings and uses than wildcards.

73. Which of the following should surround regular expressions to ensure that they are processed properly?

A. parentheses

B. backslashes

C. double quotation marks

D. single quotation marks

Answer – – D

Description – Regular expressions should be surrounded by single quotation marks.

74. Which type of file system is used for accessing remote systems?

A. ext2

B. hpfs

C. swap

D. nfs

Answer – – D

Description – The nfs file system is used for access remote systems.

75. Which of the following would represent the third partition on the second IDE drive?

A. /dev/hdb3

B. /dev/sdc2

C. /dev/hdc2

D. /dev/hda5

Answer – – A

Description – The third partition on the second drive is /dev/hdb3. The b specifies the second drive and the 3 is used for the third partition.

76. Which of the following is the pointer used to identify the location of data in files?

A. Superblock

B. Inode

C. Partition

D. File system

Answer – – B

Description – The inode is a pointer which identifies the location of data on the file system.

77. Logical drives are contained within what type of partition?

A. Primary

B. Extended

C. Swap

D. Root

Answer – – B

Description – Logical drives exist within extended partitions.

78. Which command within fdisk is used to create a partition?

A. c

B. d

C. n

D. p

Answer – – C

Description – The n command is used to create a new partition in fdisk.

79. The __________ command is used to format a swap partition.

Answer – – mkswap.

Description – The mkswap utility is used to format swap partitions.

80. Which option, used with e2fsck, specifies an alternate superblock to use when checking the file system?

A. -A

B. -b

C. -C

D. -l

Answer – – B

Description – The -b option is used to specify an alternate superblock with fsck.

81. The _________ command displays the disk space utilized on mounted file systems.

Answer – – df.

Description – The df command is used to display disk usage of file systems.

82. Which of the following files contains information on currently mounted file systems?

A. /etc/mtab

B. /etc/fstab

C. /proc

D. /dev

Answer – – A

Description – The /etc/mtab file contains the currently mounted file systems

83. The fsck utility checks a file system using how many passes?

A. Three

B. Four

C. Five

D. Six

Answer – – C

Description – The fsck utility utilizes five passes to check the file system.

84. Which command is used to view the disk usage within a directory?

A. df

B. du

C. mkfs

D. fsck

Answer – – A

Description – The du command is used to display disk usage of directories.

85. The _________ contains the inode table along with block and cluster information for the file system.

Answer – – superblock.

Description – The superblock contains inodes and information on the file system including clusters.

86. Which command is used to make a file system available to the system?

A. fsck

B. mount

C. fdisk

D. mkfs

Answer – – B

Description – The mount utility allows a file system to be accessed by the system.

87. User mountable file systems are specified in the ____________ file.

Answer – – /etc/fstab.

Description – The /etc/fstab file specifies which file systems are mountable by users.

88. Which type of file system is used for Linux systems?

A. ext2

B. hpfs

C. swap

D. nfs

Answer – – A

Description – The ext2 file system is used by Linux systems.

89. Which type of file system is used to provide virtual memory for Linux systems?

A. ext2

B. hpfs

C. swap

D. nfs

Answer – – C

Description – Swap file systems are used to provide virtual memory in Linux systems.

90. Which type of file system is used for OS/2 systems?

A. ext2

B. hpfs

C. swap

D. nfs

Answer – – B

Description – The hpfs file system is used by OS/2 systems.


91. How many primary and extended partitions are allowed on a hard disk?

A. 1

B. 2

C. 3

D. 4

Answer – – D

Description – Only four total partitions of primary and extended type can exist on a drive.

92. How many primary partitions are allowed on a hard disk?

A. 1

B. 2

C. 3

D. 4

Answer – – D

Description – Four primary partitions can exist on a single drive.

93. Before a file system can be examined using fsck it must first be ____________.

Answer – – unmounted.

Description – A file system must be unmounted before it can be inspected with fsck.

94. Which of the following shows the use of an absolute path?

A. ls

B. ls –al

C. ls /home/angie

D. /bin/ls

Answer – – D

Description – The absolute path to the ls command is /bin/ls.

95. The____________ command will display the contents of the current directory beginning with the letter a.

Answer – – ls a*.

Description – The wildcard is utilized to specify any character or set of characters, including none. This command would list files and directories with the name of simply a as well as all files and directories that begin with the letter a.

96. Which of the following commands will create a new file with the name ourgroup?

A. file ourgroup

B. touch ourgroup

C. ls ourgroup

D. mkfile ourgroup

Answer – – B

Description – Files can be created using the touch command if the filename specified doesn’t already exist. If the file exists then the access time is simply changed.

97. Which command is used to rename the ourgroup file to mygroup?

A. rn ourgroup mygroup

B. rn mygroup ourgroup

C. mv ourgroup mygroup

D. mv mygroup ourgroup

Answer – – C

Description – Files are renamed and moved using the mv command.

98. The ____________ command is used to copy files while converting them.

Answer – – dd

Description – The dd, or direct dump, command is used to convert and copy files.

99. Which directory contains the system kernel?

A. /etc

B. /

C. /boot

D. /proc

Answer – – C

Description – The system kernel is stored in the /boot directory.

100. Which directory contains the system configuration files?

A. /etc

B. /

C. /boot

D. /proc

Answer – – A

Description – The system configuration files are located in the /etc directory.

101. Which directory contains the root user’s home directory?

A. /home

B. /root

C. /sbin

D. /usr

Answer – – B

Description – The root user’s home directory is the /root directory.

102. Which directory contains the mail files?

A. /proc/mail

B. /var/spool

C. /var/mail

D. /usr/mail

Answer – – B

Description – Mail files are found in the /var/spool directory.

103. Which utility is used to update the slocate database?

A. locate

B. find

C. whereis

D. updatedb

Answer – – D

Description – The slocate database is updated using the updatedb command.

104. The __________ command is used to display the path to a specified command.

Answer – – which

Description – The which command displays the path to the specified command.

105. The default action of the ln command is to create a _______________.

Answer – – hard link

Description – By default, the ln command creates a hard link to the specified file.

106. Which of the following results when a soft link is copied?

A. A new copy of the soft link is created.

B. A hard link to the original file is created.

C. A hard link to the soft link is created.

D. A new copy of the original file is created.

Answer – – D

Description – When a soft link is copied, a new copy of the original file is stored at the target location.

107. Which of the following represents read, write, and execute permissions for owner and read and execute for all others?

A. 755

B. 022

C. 733

D. 557

Answer – – A

Description – The permission 7 presents the owner of the file with read (4), write (2), and execute (1) permissions. The group and other permissions here are read (4) and execute (1) for a total of 5.

108. Which umask would create the default file permissions of read, write, and execute permissions for owner and read and execute for all others?

A. 755

B. 022

C. 220

D. 002

Answer – – B

Description – The umask used to create default permissions of 755 is 022. The umask is used to filter permissions from those that are assigned to new files by default. This causes the umask to be the inverse of the permissions assigned to the files. In this case, the umask filters the write permissions from the group and other permissions.

109. Which command is used to change permissions of a file?

A. chown

B. chperm

C. chgrp

D. chmod

Answer – – D

Description – Permissions on files and directories is changed using the chmod command. The chown command is used to change ownership while the chgrp command changes the group assigned to the files or directories. The chperm command is invalid.

110. Which value is used to represent the sticky bit?

A. 1

B. 2

C. 3

D. 4

Answer – – A

Description – The sticky bit value is (1) while the SUID value is 4 and SGID value is 2.

111. Which command (with options) is used to create a new archive file named ang_home.tar.gz that is compressed containing the /home/angie directory contents?

Answer – – tar –czf ang_home.tar.gz /home/angie.

Description – The tar command is used with the c option to create a new archive and the z option specifies that the archive is compressed using the gzip utility. The f option specifies that the archive should be created as the specified file. Utilizing the absolute path ensures that all data within that directory is included in the archive.

112. Which command is used to view quota information for a specific user?

A. edquota

B. quota

C. repquota

D. quotaon

Answer – – B

Description – Quotas for specific users are viewed with the quota command. The repquota command will provide a report of quota usage for all users. The edquota command is used to edit quotas, and quotaon is used to enable quotas on the system.

113. File systems utilizing quotas are configured in which file?

A. /etc/services

B. /etc/hosts

C. /etc/fstab

D. /etc/mtab

Answer – – C

Description – File systems utilizing quotas are configured in the /etc/fstab file.

114. Which of the following would display all man page section numbers with the ls command in their description?

A. man –w ls

B. man –a ls

C. man –f ls

D. man –K ls

Answer – – A

Description – The man –w command is used to search the descriptions of a man page document for a specific string.

115. Which of the following commands would display all man page entries for the ls command?

A. man –w ls

B. man –a ls

C. man –f ls

D. man –K ls

Answer – – B

Description – The man –a command displays all matching man page entries for the command specified.

116. Which of the following commands would display the path to the man page for the ls command?

A. man –w ls

B. man –a ls

C. man –f ls

D. man –K ls

Answer – – A

Description – The man –w command displays the path to the man page located.

117. Which of the following would search the content of all man pages for the ls command?

A. man –k ls

B. man –a ls

C. man –f ls

D. man –K ls

Answer – – D

Description – The man –K command searches all man page entries for the string specified.

118. The ___________ command functions like the man –f command.

Answer – – whatis.

Description – The whatis command functions like man –f.

119. The ___________ command functions like the man –k command.

Answer – – apropos.

Description – The apropos command functions like man –k.

120. Which section of man page documents contains information on kernel errors?

A. 1

B. 2

C. 5

D. 8

Answer – – B

Description – Man page section 2 contains information on kernel errors.