101-500 Exam Questions
420 real 101-500 exam questions with expert-verified answers and explanations. Page 6 of 9.
- Question #284GNU and Unix Commands
You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which...
grepregex patternscharacter classestext matching - Question #285Shells and Shell Scripting
What does the following command do? cat '$TEST'
Shell quotingVariable expansionSingle quotescat command - Question #286GNU and Unix Commands
You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?
input redirectionpipescommand compositionshell redirection - Question #287Devices, Linux Filesystems, Filesystem Hierarchy Standard
The command cat /proc/dma will show you what?
proc filesystemDMA channelssystem informationhardware - Question #288GNU and Unix Commands
How can you turn off the group quota in /pub?
quotaoff commandgroup quotasfilesystem quota managementquota administration - Question #289Linux Installation and Package Management
You installed a beta rpm package, but are experiencing some problems with it. How can you remove this package?
RPM package removalrpm command syntaxpackage managementsystem administration - Question #290GNU and Unix Commands
which signal sends to the background process to resume it execution?
Linux signalsSIGCONTprocess controljob control - Question #291GNU and Unix Commands
which command displays the i-node information for a particular file? Answer is b)istat.
istat commandi-nodesfile metadatafilesystem information - Question #293Shells and Shell Scripting
You are using an application that you want to appear on the screen of another machine. What environment variable would you have to set or edit to achieve this?
X11DISPLAY variableRemote graphical applicationsEnvironment variables - Question #294System Architecture
After installing and configuring Xfree86, you notice that when you start X, the display is not centered. What program can you run to find a better modeline setting?
X Window Systemmodeline configurationdisplay centeringxvidtune - Question #296System Architecture
You just started X for the first time and noticed that the display does not use the entire screen. What program can you use to fix this?
X11 ConfigurationDisplay ResolutionxvidtuneVideo Mode Tuning - Question #297Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following is the default XFree86 configuration file?
XFree86X11 configurationfilesystem hierarchyconfiguration file paths - Question #298System Architecture
You have just set up the Gnome Display Manager as your default display manager. What file should you edit to change the default greeting for it?
GDM configurationDisplay ManagerX11 configurationLogin screen - Question #299Linux Installation and Package Management
You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?
disk partitioningMBRprimary partitionspartition table - Question #300Linux Installation and Package Management
After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system. Which command will create a complete report which you can...
rpm verificationpackage integritysecurity auditingsystem changes - Question #302Shells and Shell Scripting
You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:
shell operatorsexit statuscommand chainingconditional execution - Question #303GNU and Unix Commands
Which command is used to dump files in octal format?
od commandfile dumpingoctal formatUnix utilities - Question #304GNU and Unix Commands
You have created a really long letter and after you are done, you notice that you used the name "Bob" many times but your forgot to capitalize it in many instances. Which command w...
sed substitutionglobal replacementtext processingoutput redirection - Question #305GNU and Unix Commands
You are logged in as user tux1, but now you want to switch users to tux2 with tux2's environment. How would you do this?
su commanduser switchinglogin shellenvironment variables - Question #306GNU and Unix Commands
You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.
kill commandUnix signalsSIGTERMprocess termination - Question #307GNU and Unix Commands
You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?
hard linksinoderm commandreference counting - Question #308GNU and Unix Commands
Which command will print line numbers before each line in a file?
line numberingtext processingnl commandfile utilities - Question #309GNU and Unix Commands
You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will create all of the needed director...
mkdirparent directoriesdirectory creationfilesystem operations - Question #310GNU and Unix Commands
While using the vi editor, you wish to move ahead one page. You should press the control key and:
vi editorkeyboard shortcutspage navigationtext editing - Question #311GNU and Unix Commands
You enter the command date +%M. Wat does the output show you?
date commandformat codestime/minute outputcommand syntax - Question #312GNU and Unix Commands
When you are looking for brief information about a program in your PATH with its associated man pages, you would use ...
whereis commandcommand locationman pagesPATH - Question #313Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which command will print out the attributes of the file foobar?
lsattr commandfile attributesextended attributesfilesystem metadata - Question #314GNU and Unix Commands
Which of the following commands will list the quota for the user foobar?
user quotasquota commanddisk quotas - Question #315Devices, Linux Filesystems, Filesystem Hierarchy Standard
The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?
mkfsext3inode configurationlargefile - Question #316System Architecture
In XF86Config which section is concerned with fonts?
X11 configurationXF86ConfigFont pathsSystem setup - Question #317Devices, Linux Filesystems, Filesystem Hierarchy Standard
You have a USB storage device that you cannot get working. You have enabled all appropriate USB options in the latest 2.2 kernel but still cannot get your device working. What is m...
USB device supportKernel version compatibilityDevice driversHardware troubleshooting - Question #319Linux Installation and Package Management
What is a reasonable command to uninstall a Debian package from your system?
dpkgpackage removalpackage managementcommand flags - Question #320Linux Installation and Package Management
You want to install a new software package, but it is only available in RPM format and you are running Debian Linux. Which of the following would help you to install it on your sys...
package format conversionalien toolRPM to DEBpackage management - Question #321Linux Installation and Package Management
You have not run apt-get on a system for some time, but it has been run on the system before. What apt-get command would you run to download the latest list of packages, but not th...
apt-get updatepackage listsrepository metadatapackage management - Question #322Linux Installation and Package Management
You want to examine the changelog for the installed package postfix. Which command will display the changelog?
RPM queriespackage changelogrpm command syntaxpackage information - Question #325Linux Installation and Package Management
Which Debian package system command will list all partially installed packages and suggest how to get them correctly installed?
dpkg commandspackage managementpartially installed packagespackage diagnostics - Question #326GNU and Unix Commands
Which of the following commands will produce the following output: USERPID %CPU %MEMVSZ RSS TTY STAT STARTTIME COMMAND root 1255 4.4 0.9 6071634824 tty7 Ss+ 09:25 19:04 /usr/bin/X...
ps commandprocess listingprocess managementsystem monitoring - Question #327GNU and Unix Commands
What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2?
tar extractioncompression format detectionbzip2 decompressionarchive utilities - Question #328GNU and Unix Commands
A Makefile typically contains which targets?
MakefilesBuild targetsPhony targetsBuild automation - Question #329GNU and Unix Commands
You have finished updating and resolving dependencies for some source code. What command should you run before recompiling the code into binary form?
make utilitybuild toolscompilation workflowdependency management - Question #330Linux Installation and Package Management
What is the difference between the --remove and the--purge action with the dpkg command?
dpkgremovepurgeconfiguration files - Question #331Linux Installation and Package Management
Which command will list all the files installed from the RPM package file named, vorbis- tools- 1.1.i386. rpm?
RPM packagespackage queryfile listingrpm command flags - Question #332GNU and Unix Commands
The X program _________ is often used to make minor keyboard adjustments, like proper Back space/Delete mapping.
Keyboard configurationInput devicesLinux utilitiesSystem tools - Question #333Shells and Shell Scripting
Users may create and edit a configuration file in their home directory that can tell the X window system what window manager they wish it to start when they log in. What file is th...
X Window SystemWindow ManagerInitialization filesUser configuration - Question #334GNU and Unix Commands
The system bell sound is annoying you. Which of the following can you use to change this and other user X preferences?
X11 preferencesxsetsystem belluser configuration - Question #337Shells and Shell Scripting
What command line redirection characters instruct the shell to read from the current input source until a specific word, on a separate line and without and trailing spaces, is reac...
heredocshell redirectioninput redirectionbash syntax - Question #339Shells and Shell Scripting
What is the output when the following shell script executes? Cat <<foobar Hello foobar foobar
here-documentshell-scriptinginput-redirection - Question #340GNU and Unix Commands
Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process?
tail commandlog file monitoringfollow modecommand options - Question #341GNU and Unix Commands
You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.
kill commandSIGTERM signalprocess signalsprocess termination - Question #342GNU and Unix Commands
Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?
grep commandcase-insensitive searchcommand flagstext search