101-500 Exam Questions
420 real 101-500 exam questions with expert-verified answers and explanations. Page 9 of 9.
- Question #488GNU and Unix Commands
Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?
grepregular expressionspattern matchinglog filtering - Question #489Linux Installation and Package Management
What is true regarding the configuration of yum? (Choose two.)
yum configurationpackage repositoriesconfiguration variablesrepository hierarchy - Question #490Linux Installation and Package Management
Which of the following apt-get subcommands installs the newest versions of all currently installed packages?
apt-getpackage-managementsystem-administration - Question #491Linux Installation and Package Management
Which command uninstalls a package but keeps its configuration files in case the package is re- installed?
dpkgpackage removalconfiguration filespackage management - Question #492Linux Installation and Package Management
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
RPMpackage-dependenciesrpm-querypackage-management - Question #493GNU and Unix Commands
Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)
find commandfile ownershipuser filteringcommand options - Question #494Shells and Shell Scripting
Which of the following are valid stream redirection operators within Bash? (Choose two.)
stream redirectionfile descriptorsinput/output operatorsBash syntax - Question #495GNU and Unix Commands
Which of the following vi commands deletes two lines, the current and the following line?
vi editortext editingdeletion commandline operations - Question #496Shells and Shell Scripting
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint c...
background processesprocess terminationshell job controlsession management - Question #497GNU and Unix Commands
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?
tr commandline ending conversionCR-LF to LFtext processing - Question #498GNU and Unix Commands
Given the following input stream: txt1.txt atxt.txt txtB.txt Which of the following regular expressions turns this input stream into the following output stream? txt1.bak.txt atxt....
regular expressionssed substitutiontext processingpattern anchors - Question #499GNU and Unix Commands
Which command must be entered before exiting vi to save the current file as filea.txt?
vi editorsave filetext editingUnix commands - Question #500GNU and Unix Commands
Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?
output redirectiontee commandpipesstdout - Question #501Shells and Shell Scripting
What output will be displayed when the user fred executes the following command? echo `fred $USER'
variable expansionshell quotingcommand substitutionecho - Question #502GNU and Unix Commands
Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?
command-lookupexecutable-pathswhich-commandGNU-utilities - Question #503GNU and Unix Commands
When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?
find commandxargsnull-terminated stringsfilename handling - Question #504Shells and Shell Scripting
What is true regarding the command ls > files if files does not exist?
shell redirectionoutput redirectionfile creationstdout - Question #505Shells and Shell Scripting
Which of the following files, located in a user's home directory, contains the Bash history?
bash historyshell configurationhome directoryfile locations - Question #506Shells and Shell Scripting
Which wildcards will match the following filenames? (Choose two.) ttyS0 ttyS1 ttyS2
wildcard patternsshell globbingfile matchingcharacter classes - Question #507Shells and Shell Scripting
Which of the following commands redirects the output of ls to standard error?
I/O redirectionfile descriptorsstderrshell syntax