121. Which section of man page documents contains information on standard file formats?
A. 1
B. 2
C. 5
D. 8
Answer – – C
Description – Man page section 5 contains information on standard file formats.
122. Which section of man page documents contains information on user commands?
A. 1
B. 2
C. 5
D. 8
Answer – – A
Description – Man page section 1 contains information on user commands.
123. Which section of man page documents contains information on administrative commands?
A. 1
B. 2
C. 5
D. 8
Answer – – D
Description – Man page section 8 contains information on administrative commands.
124. Which of the following locations is used to store FAQs on the local system?
A. /usr/doc/info
B. /usr/doc
C. /usr/doc/FAQ
D. /usr/doc/HTML
Answer – – C
Description – The path to the FAQs stored on the local system is /usr/doc/FAQ.
125. Which type of document contains instructions on performing certain tasks?
A. HOWTO
B. FAQ
C. Guides
D. Mailing lists
Answer – – A
Description – The HOWTO documents provide step-by-step details on performing a variety of specific tasks.
126. Which entry in lilo.conf restricts the user from adding boot parameters without a password?
A. lock
B. restricted
C. noparams
D. password
Answer – – B
Description – The restricted parameter stops someone at the console from issuing boot parameters without knowing the preset password. The password option is used to specify the password to enter. The other options are invalid.
127. If Linux is the only operating system on your computer, where should you tell LILO to place the boot information?
A. MBR
B. Partition boot block
C. Floppy disk
D. BIOS
Answer – – A
Description – The LILO boot sector should be placed in the master boot record of the drive instead of a partition. The partition boot block can be used when multiple operating systems are installed.
128. Which boot parameter would you use to have a different root file system mounted?
A. root=/mnt/
B. root=/dev/hda1 /
C. root=/dev/hda1
D. root=/dev/hda
Answer – – C
Description – The root= parameter tells the system which volume to use as the root volume. The device name should point to a partition. No mount point is needed.
129. Which lilo.conf entry gives a boot image a second name?
A. alias
B. label
C. name
D. tag
Answer – – A
Description – Use the alias entry to have a second name for your boot image. The label entry gives the boot entry a name that is displayed at the LILO menu.
130. Which command will change a Red Hat system to GUI login mode?
A. startx
B. runlevel 5
C. init 3
D. telinit 5
Answer – – D
Description – The command telinit 5 command changes the system to runlevel 5, which is the GUI mode in Red Hat. The startx command is used to start the X Window System from a command line, but not at boot. The init 3 command would change the system to multiuser text mode. Choice B is invalid.
131. To reboot the system right now with the shutdown command, you would enter the command ________________.
Answer – – shutdown -r now.
Description – The -r option tells the system to reboot, and the now option causes the system to do it immediately.
132. The reboot and poweroff commands are actually symbolic links to ___________.
Answer – – /sbin/halt.
133. Which line in inittab would you change to change the runlevel that the system boots up to?
A. defaultinit
B. defrunlevel
C. runlevel
D. initdefault
Answer – – D
Description – The other entries are invalid.
134. When a user Telnets into the system, the ________ file is displayed to him or her before the login prompt.
Answer – – /etc/issue.net.
Description – Local users will receive the /etc/issue file.
135. Which command would list the runlevel information about the inetd service?
A. chkconfig –list inet
B. ntsysv –list inet
C. /etc/rc.d/init.d/inet status
D. ls -l /etc/rc.d/init.d/inet
Answer – – A
Description – The chkconfig tool is used from the command line while ntsysv provides a menu interface. The other commands do not provide runlevel information.
136. Which command would you use in a troubleshooting configuration if the old root volume is mounted under /mnt/root?
A. lilo -p /mnt/root
B. lilo -r /mnt/root/boot
C. lilo -r /mnt/root
D. lilo -p /mnt/root/boot
Answer – – C
Description – The -r parameter changes the perceived root path. It should point to the root volume.
137. To boot the system without running any startup scripts, you would use the boot parameter of ______________.
Answer – – emergency
Description – The S parameter still runs the system initialization script.
138. To create a boot disk on the second floppy drive without prompting the user, you would use which command?
A. mkbootdsk –device /dev/fd1 –noprompt
B. mkboot –device /dev/fd1 –noprompt
C. mkbootdsk –device /dev/fd0
D. mkboot –device /dev/fd0
Answer – – A
Description – The –device parameter specifies the floppy drive, which starts with number 0. The mkboot tool does not accept these parameters.
139. The lilo.conf entry _________ is used to enable booting from disks with more than 1024 cylinders.
A. lba
B. lba32
C. bigdisk
D. linear
Answer – – B
Description – The linear option is required for some SCSI disks. The other options are invalid.
140. When you reboot the system it first changes to runlevel _.
Answer – – 6
Description – Runlevel 0 halts the system, and runlevel 1 is used for single-user mode.
141. Which process always has the PID of 1?
A. init
B. kernel
C. sync
D. The first driver loaded
Answer – – A
Description – The init process is the only process that has a runlevel of 1.
142. Which entry in inittab tells init to wait for the requested process to finish before continuing?
A. hold
B. pause
C. once
D. wait
Answer – – D
Description – The once parameter tells init to start the process once and not to restart it again. The other options are invalid.
143. Which type of startup uses a few large script files?
A. UNIX
B. BSD
C. Sys V
D. Red Hat
Answer – – B
Description – The BSD style of initialization uses a few large script files, while Sys V uses many smaller ones in a directory hierarchy.
144. To see information on the inetd process, you would enter the ___________ command (no path).
Answer – – inet status.
Description – The inet startup script in /etc/init.d or /etc/rc.d/init.d can be queried for the process status.
145. What does LILO display when it cannot load the second stage of the boot loader?
A. LI
B. LIL
C. SECOND STAGE NOT FOUND!
D. LIL-
Answer – – A
Description – The LIL error is caused by a media failure or geometry mismatch. The LIL- is caused by a corrupt descriptor table.
146. Which tool may cause the system to lock up and stop responding?
A. SuperProbe
B. xvidtune
C. XF86Setup
D. startx
Answer – – A
Description – When SuperProbe examines the video hardware, it may cause the system to stop responding. The startx command is used to start the X Window System. The other tools should not cause any stability problems.
147. Which piece of software is different for different video chipsets?
A. Window manager
B. Desktop environment
C. xinitrc
D. X server
Answer – – D
Description – The X server installed varies between video chipsets. Window managers and desktop environments do not depend on a certain video chipset.
148. What needs to be done to change the X server from SVGA to S3?
A. switchX S3
B. ln -sf /etc/X11/X /usr/X11R6/bin/XFree_S3
C. ln -sf /usr/X11R6/bin/XFree_S3 /etc/X11/X
D. Edit the XF86Config file and change the Server directive.
Answer – – C
Description – The X server file is linked to /etc/X11/X. Answer –s A and D are invalid.
149. Which section in the XF86Config file configures the mouse?
A. Mouse
B. Input
C. User
D. Pointer
Answer – – D
Description – The Pointer section contains the mouse configuration settings.
150. Which of the following XF86Config configuration tools is easiest to use?
A. vi
B. XF86Setup
C. xf86config
D. SuperProbe
Answer – – B
Description – XF86Setup provides an easy to navigate graphical interface for creating the XF86Config file. SuperProbe is not a configuration tool. xf86config is much harder to use with its hard-to-navigate interface.
151. Which directive in the XF86Config file disables the Ctrl-Alt-Backspace key combination?
A. NoZap
B. DontZap
C. NoExit
D. DontExit
Answer – – B
Description – The other commands do not exist.
152. Which of the following XF86Config directives is required?
A. VendorName
B. ModelName
C. Identifier
D. Gamma
Answer – – C
Description – Identifier is referenced from the Screen section and is required. The other Answers are optional.
153. Which tool is used to detect most video hardware?
A. SuperProbe
B. xvidtune
C. XF86Setup
D. xf86config
Answer – – A
Description – SuperProbe will look for the video chipset type installed in the system. The other tools do not detect video hardware.
154. You would enter the _________________ command if you added fonts to the /sr/X11R6/lib/X11/fonts/myfonts directory.
Answer – – .mkfontdir /usr/X11R6/lib/X11/fonts/myfonts.
Description – The mkfontdir command must be run whenever new fonts are added to the system.
155. If a user wants an application to load when they run startx, they should put it in their _________ file.
Answer – – .xinitrc.
Description – This file is executed by xinit.
156. Which file must be changed to allow remote logins with XDM?
A. Xresources
B. Xsession
C. xdm-config
D. xdmrc
Answer – – C
Description – The xdm-config file must be changed to tell XDM to listen for queries.
157. Which file would you change to alter the text shown at the XDM login screen?
A. Xsession
B. Xresources
C. xdm-config
D. xdmrc
Answer – – B
Description – The XDM service uses an Xresources file to customize the login display.
158. Which parameter would you use to send the display output of an application to the second screen on the first display of the host named norbert?
A. -display norbert:1.2
B. -display norbert:2.1
C. -display norbert:0.1
D. -display norbert:1.0
Answer – – C
Description – Remember that the display and screen numbers start at 0, and the order is display first, then screen.
159. Which terminal emulator was designed to work with the Enlightenment window manager?
A. rxvt
B. aterm
C. xterm
D. Eterm
Answer – – D
Description – Eterm is the terminal emulator that goes with Enlightenment.
160. The __________ file stores a user’s personal changes to X applications written with the X Toolkit.
Answer – – .Xdefaults.
Description – This file holds Xresource entries that customize X apps for that user.
161. Which key combination returns the user to the X environment from a text console?
A. Ctrl-Alt-F7
B. Ctrl-Alt-Backspace
C. Ctrl-Alt-F6
D. Ctrl-Alt-+
Answer – – A
Description – Ctrl-Alt-F1 through Ctrl-Alt-F6 take you to various text consoles, and Ctrl-Alt-F7 brings you back to the X environment.
162. To allow the host dag to connect to your X server, you would enter the command _____________.
Answer – – xhost +dag.
Description – Host authentication is configured using the xhost command.
163. Which command would you use to quickly log into the system named norbert that is running XDM?
A. X -broadcast
B. X -indirect norbert
C. X -query norbert
D. startx -broadcast
Answer – – C
Description – This command connects directly to the specified system, without going through the chooser.
164. Which entry in the Xaccess file would block the host norbert from using the chooser?
A. norbert NOCHOOSER *
B. !norbert CHOOSER brain
C. -norbert CHOOSER brain
D. * NOCHOOSER brain
Answer – – B
Description – The ! at the beginning of the line is used to block hosts.
165. Which entry in the Xaccess file needs to be modified to enable remote login for XDM?
A. EnableRemote.Request 0
B. DisplayManager.Enable 0
C. DisplayManager.request 0
D. DisplayManager.requestport 0
Answer – – D
Description – The other options are invalid. Without changing this option XDM will not allow connections.
166. Which of the following is not stored in the /etc/passwd file?
A. Home directory path
B. Shell assignment
C. User ID
D. Quotas
Answer – – D
Description – Quota information is not stored in the /etc/passwd file.
167. When shadow passwords are enabled the password in the /etc/passwd file is displayed as ___________ .
Answer – – x
Description – Once shadow passwords are enabled the password field in the /etc/passwd file contains an x character to signify that the password is contained in the /etc/shadow file.
168. Files located in which file are copied to users’ home directories?
A. /etc/group
B. /etc/passwd
C. /etc/skel
D. /etc/user
Answer – – C
Description – Files stored in the /etc/skel directory are copied to users’ home directories.
169. Which option with the useradd command specifies that the home directory should be created if it doesn’t already exist?
A. -h
B. -m
C. -c
D. -d
Answer – – B
Description – The useradd –m command specifies that the home directory is to be created with the user account.
170. Which option is used with userdel to remove a user’s home directory as the account is removed?
A. -d
B. -h
C. -r
D. -e
Answer – – C
Description – The userdel –r command is used to remove a user’s home directory with the user account.
171. Which option with usermod is used to change a user’s default shell?
A. -d
B. -s
C. -b
D. -q
Answer – – B
Description – The usermod –s command is used to change a user’s default shell.
172. Global environment settings are configured in the __________ file.
Answer – – /etc/profile.
Description – Global environment settings are stored in the /etc/profile file.
173. The default umask used on the system is configured in which file?
A. /etc/bash
B. /etc/profile
C. /etc/passwd
D. /etc/files
Answer – – B
Description – The default umask used on the system is configured in the /etc/profile file.
174. Which type of access is granted to all users for the /etc/passwd file?
A. Read
B. Execute
C. No access
D. Write
Answer – – A
Description – All users are granted read access to the /etc/passwd file.
175. Which type of access is granted to other users for the /etc/shadow file?
A. Read
B. Execute
C. No access
D. Write
Answer – – C
Description – All users are granted no access to the /etc/shadow file.
176. Which command allows users to view their group memberships?
A. groupadd
B. newgroup
C. groups
D. newgrp
Answer – – C
Description – Users can view their group memberships using the groups command.
177. The ________ account has full control of the system.
Answer – – root
Description – The root account has full control of the system.
178. Which of the following will restart the crond daemon running as process id 446?
A. kill -9 446
B. kill -SIGHUP 446
C. kill -1 446
D. kill -SIGTERM 446
E. Answer’s A and D
F. Answer’s B and C
G. None of the above
Answer – – F
Description – The kill command can use signal names and numbers to stop, start, and restart processes.
179. Choose all of the correct facility names used in /etc/syslog.conf.
A. auth
B. access
C. authpriv
D. kern
E. panic
F. notice
Answer – – A,C and D
Description – auth, authpriv, and kern are all facility names used in /etc/syslog.conf.
180. Where are system startup scripts stored on a Red Hat–based system?
A. /etc
B. /etc/rc.d/rc3.d
C. /etc/init.d
D. /etc/rc.d/init.d
Answer – – D
Description – On Red Hat–based systems, system scripts are stored in /etc/rc.d/init.d.
181. Which parameter allows syslog to receive network messages?
A. -n
B. -r
C. -m
D. -s
Answer – – B
Description – The syslog -r command is used to allow syslog to receive network messages.
182. Where are user crontab files stored?
A. /etc/crontab
B. /var/spool
C. /var/spool/cron
D. ~/.cron
Answer – – C
Description – User crontab files are stored in /var/spool/cron.
183. Which command(s) will decompress the file named file.gz?
A. uncompress file.gz
B. gunzip file.gz
C. tar zxvf file.gz
D. gzip -d file.gz
Answer – – B and D
Description – Files can be decompressed using the commands gunzip and gzip -d.
184. The proper way to tar files without compressing is:
A. tar -cvf backup.tar /home/Jason
B. tar -cvzf backup.tar /home/Jason
C. tar -zvf backup.gz /home/Jason
Answer – – A
Description – The command tar -cvf backup.tar /home/Jason will create a new file named backup.tar and list the files during creation. The -z option compresses the files.
185. To limit the amount of space core dumps may occupy use:
A. climit
B. ulimit
C. quota
D. ~/.ulimit
Answer – – B
Description – The size of .core files can be limited using ulimit.
186. The location of system logs can be specified in the file /var/log/syslog.conf file.
A. True
B. False
Answer – – B
Description – The location of system log files can be specified in the /etc/syslog.conf file.
187. _____________ is used to automatically run a job when system load is low.
Answer – – batch
Description – The batch utility allows jobs to automatically be run when system load is low.
188. Which type of backup is used to back up only the files that have changed since the last full backup?
A. Full
B. Partial
C. Incremental
D. Differential
Answer – – D
Description – Differential backups are used to back up files that have changed since the last full backup.
189. Which mode of cpio is used to copy files from an archive file?
A. Copy-out
B. Copy-in
C. Copy-pass
Answer – – B
Description – The cpio utility will copy files from an archive when used in the copy-out mode.
190. The tar utility is capable of using the gzip utility to compress files during archival.
A. True
B. False
Answer – – A
Description – The tar utility can use the gzip utility to automatically compress and uncompress files during file creation.
191. The default location of the system log containing login times for users is:
A. /var/log/utmp
B. /var/log/users
C. /var/log/lastlog
D. var/log/login
Answer – – C
Description – The log file containing login times for users is stored in /var/log/lastlog by default.
192. The ___________ command is used to rotate system logs.
Answer – – logrotate.
Description – The logrotate command is used to rotate system logs.
193. The gunzip utility is capable of uncompressing files that were compressed with both the gzip and compress utilities.
A. True
B. False
Answer – – A
Description – The gunzip utility can compress files created with gzip and compress.
194. Which option on the cron command is used to display entries in the current crontab?
A. -e
B. -r
C. -l
D. -s
Answer – – C
Description – The cron -l command is used to display the current contents of crontab.
195. In the /etc/syslog.conf file, which character is used to increase the speed of system logging?
A. *
B. =
C. !
D. –
Answer – – D
Description – The – character increases the speed of system logging by not synching the log after each write.
196. Which file is used to specify message levels that are displayed using the dmesg command?
A. dmesg.conf
B. kernel.h
C. kernel.conf
D. dmesg.h
Answer – – B
Description – The kernel.h file is used to specify the message levels that are displayed using dmesg.
197. Core files are viewed using which of the following?
A. coreview
B. debug
C. gbd
D. dumpview
Answer – – C
Description – Core dump files can be viewed using the GNU Debugger or gdb.
198. Which command would be used to view the queue for all printers?
A. lpd status all
B. lpq status all
C. lpc status all
D. lprm status all
Answer – – B
Description – The lpq command is used to view the contents of the print queue.
199. Which of the following spools print jobs to the print device?
A. lpq
B. lpc
C. lpd
D. lpr
Answer – – C
Description – The lpd daemon receives jobs from the user and spools them to the print device.
200. Which command would be used to print the file mydoc.txt to the printer named hplj?
A. lpr mydoc.txt
B. print -Phplj mydoc.txt
C. cat mydoc.txt | lpr hplj
D. lpr -Phplj mydoc.txt
Answer – – D
Description – The lpr command is used to manually print files, and the -P option specifies the destination printer.
201. To place all new print jobs on hold you would use the _____________ command.
Answer – – lpc hold all.
Description – The hold all option for lpc prevents new jobs from being spooled.
202. Which command should be used to restart the lpd daemon?
A. /etc/rc.d/init.d/lpd restart
B. /usr/sbin/lpd restart
C. /etc/init.d/lpd stop | start
D. kill -1 lpd
Answer – – A
Description – You should use the startup script, if available.
203. Which of the following is used to define a filter in the /etc/printcap file?
A. of
B. filter
C. fi
D. if
Answer – – D
Description – Remember that if means input filter.
204. Which sequence should be put at the end of a line in the /etc/printcap file, assuming this is not the last line in the printer block?
A. \:
B. :\
C. ;
D. ;\
Answer – – B
Description – The last line in a printer block ends in a semicolon.
205. Which command is used to move a print job to the top of the queue?
A. lpc
B. lprm
C. lpq
D. lpr
Answer – – C
Description – Use lpq to move a print job to the top of the queue.
206. Which definition in /etc/printcap disables print banners?
A. :sh:
B. :nb:
C. :nh:
D. :hs:
Answer – – A
Description – The :sh: definition disables banners.
207. Which definition in /etc/printcap sets the maximum print job size?
A. :ms:
B. :js:
C. :xm:
D. :mx#:
Answer – – D
Description – This sets the maximum job size in 1KB blocks.
208. To remove job 243 from the print queue, you would type ___________.
Answer – – lprm 243.
Description – The lprm command removes print jobs.
209. What needs to be done after editing the /etc/printcap file?
A. kill -1
B. /etc/rc.d/init.d/lpd restart
C. /etc/init.d/lpd reload
D. nothing
Answer – – B
Description – The lpd daemon should be restarted after any configuration changes.
210. Which of the following is not a valid lpc command?
A. refresh
B. up
C. down
D. enable
Answer – – A
Description – Up, down, and disable are valid commands, but refresh is not.
211. Which lpc command is used to print a job that is currently on hold?
A. release
B. enable
C. restart
D. nohold
Answer – – A
Description – The release command releases a job that’s on hold.
212. Which must be created when manually adding a printer?
A. lock file
B. spool directory
C. queue file
D. job file
Answer – – B
Description – The spool directory must be manually created, and the permissions and ownership must be set.
213. Which command will stop print jobs in the queue from printing?
A. lpq stop all
B. lpq hold all
C. lpc stop all
D. lpc hold all
Answer – – C
Description – The stop all directive must be used with lpc.
214. When doing a lpc status all, you see the following output. What do you enter to restart printing?
Printer Printing Spooling Jobs Server Subserver
Redirect Status/(Debug)
lp@debian disabled enabled 0 none none
A. lpq start all
B. lpc start all
C. lpd reload
D. lpc enable all
Answer – – B
Description – This is the opposite of doing lpc stop and will enable a stopped printing device.
215. Which command would be used to check the printer connection, without going through the printing system?
A. lpr textfile.txt
B. echo textgfile.txt > /dev/lpt0
C. print textfile.txt
D. cat textfile.txt > /dev/lpt0
Answer – – D
Description – This sends a file directly to the interface port.
216. Which daemon spools print jobs to remote print servers?
A. lpq
B. lpd
C. lpr
D. lps
Answer – – B
Description – The lpd daemon is used to send remote print jobs.
217. Which print filter provides a text-mode menu interface?
A. Magicfilter
B. PrintTool
C. Apsfilter
D. LPR Filter
Answer – – A
Description – PrintTool provides an X GUI interface, and Magicfilter has no interface.
218. Which command should be run when the module’s configuration file is edited?
A. depmod -a
B. modprobe -d
C. moddep -a
D. echo 1 > /proc/modules
Answer – – A
Description –Whenever the modules.conf file is modified, you should update the module dependencies by running depmod.
219. A ____________ kernel has everything compiled into the main kernel file.
Answer – – monolithic.
Description – Monolithic kernels have all drivers compiled into the kernel instead of using modules.
220. Which kernel is released under the stable branch?
A. 2.3.14
B. 3.3.14
C. 3.2.14
D. 4.3.13
Answer – – C
Description – The minor version number specifies if the kernel is stable or development.
221. The command modinfo -d sound-driver would display what?
A. Module size
B. Module description
C. If the module is loaded
D. If the module is set as autoclean
Answer – – B
Description – Modinfo is used to display module information. The -d parameter shows the description.
222. Which directive in the module’s configuration file will give the module a new name?
A. alias newname oldname
B. oldname alias newname
C. oldname option=alias newname
D. alias oldname newname
Answer – – D
Description – The alias directive specifies a second name for a module.
223. How many patches would be required to update from kernel 2.1.13 to 2.1.21?
A. 8
B. 7
C. 2
D. 1
Answer – – A
Description – Patches 2.2.14, 2.2.15, 2.2.16, 2.2.17, 2.2.18, 2.2.19, 2.2.20, and 2.2.21 would be required.
224. Which command is used to check the integrity of the kernel source package?
A. PGP
B. MD5
C. DES
D. GPG
Answer – – D
Description – The kernel sources are signed with GnuPG. This way you can be sure they have not been tampered with.
225. To configure the kernel using the most basic interface, you would type ___________.
Answer – – make config.
Description – This interface provides a simple text mode mechanism for configuring the kernel.
226. The kernel configuration is stored in a file named what?
A. .config
B. config
C. .kconfig
D. kconfig
Answer – – A
Description – The saved kernel configuration is stored in the .config file.
227. The _________ file must be edited if a second kernel is installed on a system.
Answer – – /etc/lilo.conf.
Description – If this file is not edited, the system will not know about the new kernel. Do not forget to run lilo to install the new boot sector.
228. Which command should be run to create a new boot sector when a new kernel is installed?
A. mkinitrd
B. make install
C. lilo
D. kerneld
Answer – – C
Description – Running lilo installs a new boot sector after the lilo.conf file is modified. The mkinitrd command creates an initial ramdisk, if needed. The make install command is used to install compiled software, and Answer D is invalid.
229. Which module directory holds the sound drivers?
A. sound
B. dsp
C. misc
D. media
Answer – – C
Description – The other choices are invalid.
230. Which command(s) will remove all autoclean-able modules?
A. rmmod -r
B. rmmod -a
C. modprobe -r
D. modprobe -a
Answer – – A and C
Description – The rmmod -a command removes all unused modules and the modprobe -a command loads all matching modules.
231. Which command is used to apply kernel patches?
A. update
B. patch
C. upgrade
D. mkinitrd
Answer – – B
Description – Answer –s A and C are invalid. The mkinitrd command is used to create an initial ramdisk image.
232. Which library must be installed to use make menuconfig?
A. TCL/TK
B. GTK
C. PLIB
D. ncurses
Answer – – D
Description – TCL/TK is required to run make xconfig.
233. Which library must be installed to use make xconfig?
A. TCL/TK
B. GTK
C. PLIB
D. ncurses
Answer – – A
Description – The ncurses library is required for make menuconfig.
234. Which command creates a source code dependency list when compiling a new kernel?
A. depmod
B. make depmod
C. make depend
D. make dep
Answer – – D
Description – The depmod command is used to check module dependencies, after they are compiled.
235. The ________ command lists all currently loaded modules.
Answer – – lsmod.
236. Which menuconfig/xconfig menu has the disk configuration options?
A. Block devices
B. File systems
C. SCSI devices
D. General setup
Answer – – A
Description – Because disks are considered block devices, they are configured under this item.
237. Which file holds the module dependency list (no path)?
Answer – – modules.dep.
Description – The depmod command creates this module dependency list file.
238. Which script is executed when a nonlogin bash shell is started?
A. .bashrc
B. .bash_nologin
C. /etc/profile
D. .cshrc
Answer – – A
Description – Answer – B is invalid. The /etc/profile is read whenever a user logs in, and they do not have a custom profile file. The .cshrc is not used by the bash shell.
239. To get input from a user and place it into a variable named NAME, you would use the ____________ command.
Answer – – read $NAME.
Description – The read command takes input from a user and places it in to variables. The .cshrc is not used by the bash shell.
240. Which command inserts text into vi at the current cursor location?
A. a
B. f
C. T
D. i
Answer – – D
Description – The a command appends text, and can also insert text to the right of the cursor. The other Answers are invalid.