LX0-103 Practice Questions
199 real LX0-103 exam questions with expert-verified answers and explanations. Page 4 of 4.
- Question #165GNU and Unix Commands
The correct crontab entry to execute the script chklog once per hour between 3 p.m. and 5 p.m. on Monday and Thursday each week is:
crontab syntaxjob schedulingtime specificationday of week - Question #166Linux Installation and Package Management
Of the ways listed, which is the best way to temporarily suspend a user's ability to interactively login?
user account managementlogin shell/bin/falseaccount lockout - Question #167Linux Installation and Package Management
You have a user whose account you want to disable but not remove. What should you do?
user account management/etc/passwdaccount disablepassword field - Question #168GNU and Unix Commands
Which crontab entry could be used to set the system time at regular intervals?
crontabntpdateNTPtime synchronization - Question #169System Architecture
Identify the statement that would create a default route using a gateway of 192.168.1.1.
route commanddefault gatewayrouting tablenetwork configuration - Question #170System Architecture
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
xwininfoX11color depthdisplay information - Question #171GNU and Unix Commands
You suspect that a gateway machine on your network has failed but you are unsure which machine. Which command will help locate the problem?
traceroutenetwork troubleshootinggateway failurerouting - Question #172System Architecture
Suppose that the command netstat a hangs for a long time without producing output. You might suspect:
netstatDNS resolutionnetwork diagnosticsname lookup - Question #173System Architecture
Consider the following command and an abbreviated version of its output: $ netstat nr Kernel IP routing table Destination Gateway Genmask Flags Iface 192.168.165.0 0.0.0.0 255.255....
netstat -nrrouting tabledefault gatewaynetwork analysis - Question #174Devices, Linux Filesystems, Filesystem Hierarchy Standard
What command can be used on an existing (formatted) partition, to configure the interval between disk checks when mounting partitions?
tune2fsfilesystem check intervale2fsckext2/3/4 tuning - Question #175Linux Installation and Package Management
If the path parameter is not set for a share in the smb.conf file, the share will refer to which of the following directories?
Sambasmb.confshare configurationdefault path - Question #176Linux Installation and Package Management
What information does the file modules.dep provide?
modules.depkernel modulesmodule dependenciesmodprobe - Question #177Devices, Linux Filesystems, Filesystem Hierarchy Standard
What is the minimum number of disks required in a RAID5 array?
RAID5disk redundancyminimum disk countparity - Question #178System Architecture
Which of the following is the process ID number of the init program?
initPID 1boot processprocess hierarchy - Question #179Devices, Linux Filesystems, Filesystem Hierarchy Standard
An administrator has just added a CD-ROM drive (/dev/hdd) to a system and added it to the administrator's fstab. Typically the administrator can use which of the following commands...
mount commandfstabCD-ROMfilesystem mounting - Question #180Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following commands will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?
tune2fsmount counte2fsckfilesystem maintenance - Question #181Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following directories contains additional information about installed packages?
FHS/usr/share/docpackage documentation - Question #182Devices, Linux Filesystems, Filesystem Hierarchy Standard
Which of the following Linux filesystems pre-allocates a fixed number of inodes at filesystems make/creation time, and does NOT generate them as needed?
inodesext3filesystem typesfilesystem creation - Question #183System Architecture
An administrator is having some trouble with a disk partition and needs to do maintenance on this partition. The administrator's users home directories are on it and several are lo...
runlevelstelinitsingle-user modesystem maintenance - Question #184GNU and Unix Commands
An administrator wants the default permissions for their files to be -rw-r-----. How must the administrator set umask?
umaskfile permissionsdefault permissions - Question #185GNU and Unix Commands
An administrator is writing text in vi. Now the administrator wants to save their changes and exit. Which of the following sequence of inputs will accomplish this? (Select TWO).
vi editorsave and quitZZ:wq! - Question #186GNU and Unix Commands
While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without...
vi editorquit without saving:q! - Question #187GNU and Unix Commands
In the command foo < bar | foobar, which of the following statements is correct?
pipesI/O redirectionstdin/stdoutshell pipelines - Question #188GNU and Unix Commands
All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT:
bash scriptsscript executionsource command - Question #189GNU and Unix Commands
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 charactersrmdirbackslash - Question #190GNU and Unix Commands
Which of the following chown commands will change the ownership to foo and the group to bar on a file named biglist?
chownfile ownershipgroup ownership - Question #191Devices, Linux Filesystems, Filesystem Hierarchy Standard
To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line...
/etc/fstabmount optionsuser mount - Question #192Devices, Linux Filesystems, Filesystem Hierarchy Standard
An administrator is trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?
hard linksln commandfilesystem constraintsinodes - Question #193GNU and Unix Commands
For which of the following can the tee command be used?
tee commandstdoutI/O redirection - Question #194GNU and Unix Commands
What is the default action of the split command on an input file?
split commandfile splittingline count - Question #195GNU and Unix Commands
What is the difference between the i and a commands of the vi editor?
vi editorinsert modeappend commandcursor positioning - Question #196GNU and Unix Commands
Which of the following commands moves and resumes in the background the last stopped shell job?
job controlbg commandbackground processes - Question #197GNU and Unix Commands
What is the effect of the egrep command when the -v option is used?
egrepgrep -vtext filteringpattern matching - Question #198GNU and Unix Commands
What does the ? symbol within regular expressions represent?
regular expressionsregex quantifierspattern matching - Question #199GNU and Unix Commands
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
vi editorcommand repetitionnumeric prefix - Question #200GNU and Unix Commands
Which of the following files, located in the user home directory, is used to store the Bash history?
bash history.bash_historyshell configuration - Question #201GNU and Unix Commands
Which of the following commands displays the contents of a gzip compressed tar archive?
targziparchivecompression - Question #202GNU and Unix Commands
Which grep command will print only the lines that do not end with a / in the file foo?
grepregexpattern matchingtext filtering - Question #203GNU and Unix Commands
Which of the following commands is used to change options and positional parameters for a running Bash?
bashset commandshell optionspositional parameters - Question #204GNU 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?
sedtext substitutionstream editorregex - Question #205GNU and Unix Commands
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....
bashsource commandshell executionsubshell - Question #206GNU and Unix Commands
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?
niceprocess priorityschedulingnice level - Question #207GNU and Unix Commands
Which shell command is used to continue background execution of a suspended command?
bgjob controlbackground processshell - Question #208GNU and Unix Commands
Which of the following shell redirections will write standard output and standard error output to a file named filename?
shell redirectionstdoutstderrfile descriptor - Question #209GNU and Unix Commands
In the vi editor, which of the following commands will copy the current line into the vi buffer?
vi editoryankbuffercopy line - Question #210GNU 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 editorsave and exitZZ:wq - Question #211GNU and Unix Commands
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
nicedefault nice levelprocess priorityscheduling - Question #212GNU and Unix Commands
Which of the following commands will reduce all consecutive spaces down to a single space?
trsqueezewhitespacetext processing - Question #213GNU and Unix Commands
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
background processampersandjob controlshell