101-500 Exam Questions
420 real 101-500 exam questions with expert-verified answers and explanations. Page 1 of 9.
- Question #1GNU and Unix Commands
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
SysV initrunlevelssingle-user modeinit commands - Question #2Linux Installation and Package Management
Which of the following commands lists all currently installed packages when using RPM package management?
RPM package managementrpm command syntaxpackage queriessystem administration - Question #3Linux Installation and Package Management
Which of the following commands can be used to download the RPM package kernel without installing it?
RPM packagesyumdownloaderpackage downloadyum tools - Question #5Linux Installation and Package Management
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
dpkgpackage removalconfiguration filespackage management - Question #6Linux Installation and Package Management
Which file should be edited to select the network locations from which Debian installation package files are loaded?
APT sourcesPackage repositoriesDebian configurationPackage management - Question #7Shells and Shell Scripting
Which of the following statements is correct regarding the command foo 1> bar?
shell redirectionstdoutoutput operatorsfile overwrite - Question #8GNU and Unix Commands
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
process signalsSIGTERMkill commandgraceful shutdown - Question #10GNU and Unix Commands
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
nice commandprocess priorityniceness valuesuser permissions - Question #11GNU and Unix Commands
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
vi editorpaste commandstext deletionbuffer operations - Question #12Shells and Shell Scripting
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
shell quotingbackslash escapingspecial charactersrmdir - Question #13Devices, Linux Filesystems, FHS
In compliance with the FHS, in which of the directories are man pages found?
FHSman pagesdirectory structurefilesystem hierarchy - Question #14GNU and Unix Commands
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
I/O RedirectionPipestee commandstdout - Question #15Shells and Shell Scripting
What is the purpose of the Bash built-in export command?
bash exportenvironment variablesshell scriptingsubshells - Question #16GNU and Unix Commands
What is the output of the following command? echo "Hello World" | tr -d aieou
tr commandtext filteringpipe operatorcharacter deletion - Question #17Shells and Shell Scripting
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and...
heredocinput redirectionshell operatorsbash syntax - Question #18GNU and Unix Commands
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
timestamp modificationfile operationscommand behaviorsed/echo/touch - Question #20GNU and Unix Commands
Which of the following commands displays the contents of a gzip compressed tar archive?
tar archivesgzip compressioncommand flagsfile listing - Question #21GNU and Unix Commands
Which grep command will print only the lines that do not end with a / in the file foo?
grep commandregex anchorsinverted matchingpattern matching - Question #22Shells and Shell Scripting
Which of the following commands is used to change options and positional parameters for a running Bash?
set commandbash optionspositional parametersshell configuration - Question #23GNU and Unix Commands
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
sed substitutionglobal flagI/O redirectionregex patterns - Question #24Shells and Shell Scripting
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
source builtinsubshell executionshell sourcingscript execution - Question #25GNU and Unix Commands
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?
nice commandprocess priorityschedulingcommand syntax - Question #26Shells and Shell Scripting
Which shell command is used to continue background execution of a suspended command?
job controlbackground processesshell commandsprocess management - Question #27Shells and Shell Scripting
Which of the following shell redirections will write standard output and standard error output to a file named filename?
shell redirectionsfile descriptorsstdout/stderrI/O redirection - Question #28GNU and Unix Commands
In the vi editor, which of the following commands will copy the current line into the vi buffer?
vi editoryank commandtext editor commandsvim - Question #29GNU and Unix Commands
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
vi editorcommand modesave and exittext editors - Question #30GNU and Unix Commands
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
nice commandprocess prioritydefault levelprocess scheduling - Question #31GNU and Unix Commands
Which of the following commands will reduce all consecutive spaces down to a single space?
tr commandtext processingsqueeze flagcommand options - Question #32Shells and Shell Scripting
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
background processesshell syntaxjob controlampersand operator - Question #33GNU and Unix Commands
Which of the following commands will print the last 10 lines of a text file to the standard output?
tailtext file operationsfile viewingcommand options - Question #34GNU and Unix Commands
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
cut commandfield extractiontext processingpasswd file - Question #35GNU and Unix Commands
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
signalsSIGINTprocess controlkeyboard interrupts - Question #36GNU and Unix Commands
What happens after issuing the command vi without any additional parameters?
vi editorcommand modestartup behaviorempty file - Question #37Shells and Shell Scripting
Which of the following command sets the Bash variable named TEST with the content FOO?
bash variablesvariable assignmentshell syntaxbash fundamentals - Question #38Shells and Shell Scripting
Which variable defines the directories in which a Bash shell searches for executable commands?
PATH variableenvironment variablescommand lookupshell basics - Question #39GNU and Unix Commands
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
file commandfile type detectionmagic databaseLinux utilities - Question #41GNU and Unix Commands
Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers....
find commandfile ownership-user vs -uidcommand syntax - Question #42Shells and Shell Scripting
When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards?
Shell I/O RedirectionFile TruncationsedInput/Output - Question #43GNU and Unix Commands
When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created?
pipestee commandstdin/stdout redirectioncommand chaining - Question #44GNU and Unix Commands
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
uptime commandsystem informationtop commandsystem monitoring - Question #45Shells and Shell Scripting
Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
stream redirectionBash operatorsinput/output redirectionhere-strings - Question #46Devices, Linux Filesystems, Filesystem Hierarchy Standard
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
hard linksinodesreference countsfile deletion - Question #47Devices, Linux Filesystems, Filesystem Hierarchy Standard
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
symbolic linksfilesystem mountingdata migrationpath redirection - Question #48GNU and Unix Commands
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
chownfile ownershippermissionscommand syntax - Question #49GNU and Unix Commands
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
chmodfile permissionssymbolic notationownership/access control - Question #50GNU and Unix Commands
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
find commandfile searching$PATH limitationsexecutable location - Question #51Devices, Linux Filesystems, Filesystem Hierarchy Standard
What does the command mount -a do?
mount commandfstab configurationauto/noauto optionsfilesystem mounting - Question #52GNU and Unix Commands
Which of the following settings for umask ensures that new files have the default permissions -rw- r----- ?
umaskfile permissionsoctal notationpermission bits - Question #53Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following is the device file name for the second partition on the only SCSI drive?
SCSI device namingdevice files/dev/ conventionspartition numbering - Question #54Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
ext3 filesystemmke2fs commandmkfs commandfilesystem creation