101-500 Exam Questions
420 real 101-500 exam questions with expert-verified answers and explanations. Page 7 of 9.
- Question #343GNU and Unix Commands
The command used to determine a file's type is
file commandfile type detectionLinux utilitiescommand basics - Question #344Shells and Shell Scripting
Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into abash initialization file will have bash recogni...
bash configurationset command optionsvi editing modeshell initialization - Question #346Linux Installation and Package Management
User Joseph has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?
make installroot privilegespackage installationsystem binaries - Question #347Linux Installation and Package Management
What RPM command would show you detailed information for a package called openssh- 3.6.i386.rpm?
RPM commandsPackage queriesrpm --queryPackage metadata - Question #348Devices, Linux Filesystems, Filesystem Hierarchy Standard
In GRUB's configuration file you find the line Root (hd1,4) What is corresponding device name on a Linux system?
GRUBdevice namingpartitionsbootloader - Question #354System Architecture
The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?
GRUB bootloaderStage 1 boot processHard Disk Errorboot sequence - Question #356System Architecture
Which of the following commands can be used to instruct the init process to switch runlevels? (Choose TWO correct answers)
init processrunlevelssystem startupboot management - Question #357GNU and Unix Commands
What can the tee command be used for?
tee commandI/O redirectionstdout/file outputshell utilities - Question #358GNU and Unix Commands
Which key do you press to switch to normal mode in vi?
vi editormodal editingkeyboard shortcutstext editor - Question #360GNU and Unix Commands
Which of the following commands will replace every instance of the word list with LIST from the file myfile.txt and print the results on the screen?
sed substitutiontext processingcommand flagspattern matching - Question #362Shells and Shell Scripting
Which of the following commands will NOT execute the bash script /usr/local/bin/runme.sh?
script executionbash commandsshell sourcingcommand invocation - Question #365Shells and Shell Scripting
Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such f...
shell escapingspecial characters in filenamesquoting mechanismstilde expansion - Question #366GNU and Unix Commands
While editing a file in vi, you realize that you are changing the wrong file. What vi command sequence will allow you to quit without saving your changes?
vi editorcommand modequit without savevi syntax - Question #367Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which command will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?
tune2fsext2fs utilitiesfilesystem parametersmount checking - Question #370Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following is true when hard-linked files are present?
hard linksinodefilesystem internalsfile references - Question #379Linux Installation and Package Management
After modifying LILO's configuration file, what command should you run for the changes to take effect?
LILObootloaderconfigurationboot-process - Question #382GNU and Unix Commands
The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh matt:x:103:1...
greppattern matching-o flagtext processing - Question #383System Architecture
Which TWO runlevels should never be declared as the default runlevel?
runlevelssystem initializationboot processdefault runlevel - Question #384System Architecture
After modifying GRUB's configuration file, what command should you run for the changes to take effect?
GRUBBoot processConfiguration filesBootloader - Question #385Devices, Linux Filesystems, Filesystem Hierarchy Standard
You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?
hard linksfilesystemsinodesfile operations - Question #388GNU and Unix Commands
When in Normal mode in vi, which command character can be used to begin a reverse search of the text?
vi editortext searchNormal modereverse search - Question #389GNU and Unix Commands
To ensure that a running process continues to execute after you log out, the process should be started with what command?
nohupprocess managementbackground executionlogout handling - Question #390GNU and Unix Commands
Which signal is sent by the kill command by default?
signalskill commandSIGTERMprocess control - Question #391Shells and Shell Scripting
What is the purpose of the Bash built-in export command?
export commandenvironment variablesbash built-inschild processes - Question #392Shells and Shell Scripting
Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process and make it the current job?
job controlfg commandprocess managementshell built-ins - Question #394System 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...
runlevelsinit commandsingle-user modesystem maintenance - Question #395System Architecture
Which of the following statements is a TRUE difference between GRUB Legacy and GRUB 2?
BootloaderGRUB 2Partition numberingBoot process - Question #396Linux Installation and Package Management
Which of the following commands can be used to perform a full text search on all available packages on a Debian system?
package-managementapt-cachedebian-packagespackage-search - Question #398Devices, Linux Filesystems, Filesystem Hierarchy Standard
What effect does the sticky bit have when set on a directory?
sticky bitfile permissionsdirectory permissionsfile deletion - Question #399Devices, Linux Filesystems, Filesystem Hierarchy Standard
Identify the proper device for the third partition on the only SCSI drive on the system.
SCSI device namingdevice files/dev/sd prefixpartition numbering - Question #402GNU and Unix Commands
What is the purpose of the xargs command?
xargsstdincommand executionargument handling - Question #403GNU and Unix Commands
You are writing text in vi. Now you want to save your changes and exit. Which TWO sequence of inputs will accomplish this?
vi editortext editingcommand modesave/exit - Question #404GNU and Unix Commands
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
tee commandoutput redirectionappend modecommand flags - Question #406GNU and Unix Commands
Which of the following commands are common Linux commands for file management? (Choose three correct answers.)
file managementlinux commandsfile operationsdirectory creation - Question #407Shells and Shell Scripting
Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)
bash globbingwildcard patternsfile matchingshell expansion - Question #408GNU and Unix Commands
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
tee commandfile appendcommand optionsI/O redirection - Question #409GNU and Unix Commands
What is the purpose of the xargs command?
xargsSTDIN processingcommand executionargument handling - Question #410GNU and Unix Commands
Which of the following commands can be used to create a new file that is 100kB in size?
file-creationdd-commandfile-managementlinux-commands - Question #411GNU and Unix Commands
When using regular expressions, which of the following characters match the beginning of a line?
regular expressionsregex metacharactersline anchorspattern matching - Question #412Shells and Shell Scripting
Which of the following statements is correct for a command line ending with a & character?
background processesshell operatorsjob controlcommand execution - Question #413GNU and Unix Commands
Which of the following commands will produce the following output?
process managementps commandprocess listingsystem monitoring - Question #414GNU and Unix Commands
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
pwd commandbash variablesPWD environment variableshell basics - Question #415GNU and Unix Commands
Which signal is sent by the kill command by default?
signalskill commandSIGTERMprocess control - Question #416Shells and Shell Scripting
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
Output RedirectionRedirection OperatorsFile OverwritingI/O Redirection - Question #417GNU and Unix Commands
Which of the following commands will print important system information such as the kernel version and machine hardware architecture?
uname commandsystem informationkernel versionhardware architecture - Question #418Shells and Shell Scripting
In Bash, inserting 2>&1 after a command redirects:
Bash redirectionFile descriptorsStandard streamsI/O redirection - Question #420GNU and Unix Commands
Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?
SIGINTsignal codesprocess signalsterminal control - Question #421GNU and Unix Commands
Which of the following are modes of the vi editor? (Choose two.)
vi editorinsert modecommand modeunix tools - Question #422Shells and Shell Scripting
Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)
variable exportenvironment variablesshell commandsprocess inheritance - Question #423GNU and Unix Commands
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
sed substitutiontext filteringglobal flagstream editor