101-500 Exam Questions
420 real 101-500 exam questions with expert-verified answers and explanations. Page 3 of 9.
- Question #112Linux Installation and Package Management
Which of the following commands is used to update the list of available packages when using dpkg based package management?
package managementapt-getDebian/Ubuntupackage repositories - Question #116System Architecture
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
bootloader managementdd commandMBR layoutdisk operations - Question #117GNU and Unix Commands
Which of the following commands can be used to create a USB storage media from a disk image?
dd commanddisk imagingUSB mediablock devices - Question #118Shells and Shell Scripting
In Bash, inserting 1>&2 after a command redirects
I/O redirectionfile descriptorsstdout/stderrbash syntax - Question #119GNU and Unix Commands
What command will generate a list of user names from /etc/passwd along with their login shell?
cut command/etc/passwd structurefield delimiterstext processing - Question #120GNU and Unix Commands
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
find command-maxdepth optiondirectory depthfilesystem navigation - Question #121System Architecture
Which of the following commands will load a kernel module along with any required dependency modules?
kernel modulesmodprobemodule dependenciesdevice drivers - Question #122System Architecture
You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which comman...
run-levelsmaintenance-modesystem-administrationuser-session-management - Question #123System Architecture
During a system boot cycle, what is the program that is run after the BIOS completes its tasks?
Boot sequenceBootloaderBIOSSystem startup - Question #124System Architecture
The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?
GRUBBoot StagesBootloaderBoot Process - Question #125System Architecture
Which configuration file should be modified to disable the ctrl-alt-delete key combination?
init systeminittab configurationkeyboard handlingsystem administration - Question #126System Architecture
The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot...
kernel parametersboot processinit systemboot loader - Question #127Linux Installation and Package Management
You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?
RPM queriespackage file inspectionfile listinguninstalled packages - Question #128Linux Installation and Package Management
Which RPM command will output the name of the package which installed the file /etc/exports?
rpm querypackage ownershipfile lookuppackage management - Question #129GNU and Unix Commands
Which of the following commands can be used to enable a file for paging and swapping?
swap spacememory managementswaponLinux administration - Question #130Linux Installation and Package Management
What command will uninstall a package but leave its configuration files in case a package is re- installed?
dpkgpackage removalconfiguration filespackage management - Question #131Linux Installation and Package Management
Which command is used to query information about the available packages on a Debian system?
apt-cachepackage-queriesdebian-packagesapt-tools - Question #132System Architecture
The GRUB_TIMEOUT parameter specifies a timeout period when booting in what unit of time?
GRUB configurationBoot timeoutBootloader parametersSystem boot - Question #133Linux Installation and Package Management
Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not a...
apt-getpackage-upgradedependency-managementpackage-management - Question #134GNU and Unix Commands
Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
tr commandline ending conversiontext processingstream redirection - Question #135GNU and Unix Commands
When should grep -F or the fgrep command be used to search the content of text files?
grepfgrepliteral string searchregular expressions - Question #136GNU and Unix Commands
Which of the following is a limitation of the cut command?
cut commandtext processingfield selectioncommand limitations - Question #137Shells and Shell Scripting
In the command foo < bar | foobar, which ONE of the following statements is correct?
pipesinput/output redirectionstdin/stdoutshell operators - Question #138GNU and Unix Commands
What is the default process priority when a process is started using the nice command?
nice commandprocess priorityprocess scheduling - Question #139GNU and Unix Commands
Which of the following commands will print the first few lines of a text file to the shell?
head commandfile viewingcommand flagstext utilities - Question #140GNU and Unix Commands
Which signal is sent to a suspended process in order to have it resume execution?
signalsprocess controlSIGCONTjob control - Question #142Shells and Shell Scripting
What is the purpose of the & character at the end of a command line?
background processesjob controlshell metacharactersprocess management - Question #143GNU and Unix Commands
Which command will show you the contents of a gzip compressed tar archive?
tar command optionsgzip compressionarchive contents listingcompressed archives - Question #144Shells and Shell Scripting
What command will display all of the background tasks running in the current shell?
background jobsshell built-insjob controlprocess management - Question #145GNU and Unix Commands
Which of the following commands will print important system information such as the kernel version and machine hardware name?
uname commandsystem informationkernel versionLinux diagnostics - Question #146Shells and Shell Scripting
In bash, inserting 2>&1 after a command redirects
I/O RedirectionFile Descriptorsstderrstdout - Question #147GNU and Unix Commands
Which command will convert all tab characters in a file to spaces and print that to standard out?
expand commandtab conversiontext processingstandard output - Question #148Shells and Shell Scripting
Once a shell variable has been created, how can the variable be removed from the environment?
shell variablesunset commandenvironment variablesvariable removal - Question #149Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which directory contains additional information about installed packages?
FHSPackage documentationDirectory structure/usr/share/doc - Question #150GNU and Unix Commands
Which of the following commands will NOT update the Modify timestamp on the file /tmp/myfile.txt?
file timestampsmtimecommand behaviorfile operations - Question #151GNU and Unix Commands
Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?
SignalsSIGINTProcess ControlTerminal Shortcuts - Question #153GNU and Unix Commands
What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words
grepregex metacharactersPOSIX greppattern matching - Question #154GNU and Unix Commands
You have created a long letter and after you are done you notice that you used the name "Bob" many times but you forgot to capitalize it in many instances. Which command would repl...
sedpattern matchingtext substitutionstream processing - Question #155GNU and Unix Commands
When in Normal mode in vi, which command character will insert a blank line below the current cursor position and place the insert cursor at the beginning of the new line?
vi editornormal modetext editinginsert mode - Question #156GNU and Unix Commands
What is the effect on the grep command when the -v option is used?
grepinverted matchingcommand optionstext filtering - Question #157GNU and Unix Commands
While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?
vi editor:e commandfile reloadtext editors - Question #158
In order to use the output of ls to overwrite a file called bazz, which of the following command lines would you use?
- Question #159GNU and Unix Commands
When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?
find commandxargsnull-delimited outputfilename spaces - Question #160GNU and Unix Commands
What is the purpose of the xargs command?
xargsstdin processingcommand constructionUnix utilities - Question #161GNU and Unix Commands
You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.c...
symbolic linksln commandfile linkingFHS - Question #162Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following Linux filesystems pre-allocates a fixed number of inodes at the filesystem's make/creation time, and does NOT generate them as needed?
ext3inode allocationfilesystem creationpre-allocation - Question #163Devices, Linux Filesystems, Filesystem Hierarchy Standard
You have just added a CD-ROM drive (/dev/hdd) to your system and have added it to your fstab. Typically you can use which of the following commands to mount media in that drive to...
mount commandfstab configurationCD-ROM mountingdevice mounting - Question #165Devices, Linux Filesystems, Filesystem Hierarchy Standard
What does the command mount -a do?
mount command/etc/fstabfilesystem mountingsystem administration - Question #166GNU and Unix Commands
What would the following line accomplish if run as root? chown -R bert /home/bert/*
chownfile ownershiprecursive flagpermissions - Question #167GNU and Unix Commands
Which one of the following programs will only find files that are in your PATH?
PATH variablewhich commandfile search utilitiescommand location