LFCS Exam Questions
676 real LFCS exam questions with expert-verified answers and explanations. Page 13 of 14.
- Question #800Essential Commands
Which of the following files, located in the user home directory, is used to store the Bash history?
Bash historyShell configurationUser files - Question #801Essential Commands
Which of the following commands displays the contents of a gzip compressed tar archive?
targzipArchivingFile Management - Question #802Essential Commands
Which grep command will print only the lines that do not end with a / in the file foo?
grepregular expressionscommand-line utilitiestext filtering - Question #803Essential Commands
Which of the following commands is used to change options and positional parameters for a running Bash?
Bash shellset commandshell optionspositional parameters - Question #804Essential 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 processingCommand-line utilitiesFile manipulation - Question #805Essential 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....
Bash ShellScript ExecutionSubshellSource Command - Question #806Essential Commands
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?
nice commandprocess schedulingcommand arguments - Question #807Essential Commands
Which shell command is used to continue background execution of a suspended command?
process managementjob controlshell commandsbackground processes - Question #808Essential Commands
Which of the following shell redirections will write standard output and standard error output to a file named filename?
Shell RedirectionStandard OutputStandard ErrorFile Descriptors - Question #809Essential Commands
In the vi editor, which of the following commands will copy the current line into the vi buffer?
vi editortext manipulationcopy commandyy command - Question #810Essential Commands
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
vi editorText editingSaving filesExiting editor - Question #811Essential 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 nice level - Question #812Essential Commands
Which of the following commands will reduce all consecutive spaces down to a single space?
tr commandtext processingcommand line utilities - Question #813Essential 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 processesShell syntaxProcess managementCommand execution - Question #814Essential Commands
Which of the following commands will write a message to the terminals of all logged in users?
wall commandUser communicationTerminal messaging - Question #815Storage Management
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
LVMLogical VolumesVolume ManagementStorage - Question #816Essential Commands
Which of the following commands updates the linker cache of shared libraries?
ldconfigShared LibrariesLinker Cache - Question #817Essential Commands
Which of the following commands lists all currently installed packages when using RPM package management?
RPMPackage ManagementQuery PackagesEssential Commands - Question #818Essential Commands
Which of the following commands can be used to download the RPM package kernel without installing it?
Package ManagementYUMRPMDownloading Packages - Question #819Essential Commands
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answer...
RPM package managementFile integrityrpm --verifySystem utilities - Question #820Storage Management
Which of the following is correct when talking about mount points?
Mount pointsFilesystem mountingStorage management basics - Question #821Operation of Running Systems
Which function key is used to start Safe Mode in Windows NT?
exam scope awarenessoperating system bootsystem modesWindows NT - Question #822Operation of Running Systems
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
Environment variablesShared librariesDynamic linkingLibrary paths - Question #823Essential Commands
Which RPM command will output the name of the package which supplied the file /etc/exports?
RPMPackage ManagementFile OwnershipQuerying - Question #824Essential Commands
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
dpkgpackage managementpackage removalconfiguration files - Question #825Operation of Running Systems
Which file should be edited to select the network locations from which Debian installation package files are loaded?
aptpackage managementrepositoriessources.list - Question #826Storage Management
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
dd commandbootloaderMBR structuredisk management - Question #827Storage Management
Which of the following commands can be used to create a USB storage media from a disk image?
dd commanddisk imagingUSB media creation - Question #828Essential Commands
In Bash, inserting 1>&2 after a command redirects
BashRedirectionFile DescriptorsCommand Line - Question #829User and Group Management
What command will generate a list of user names from /etc/passwd along with their login shell?
cut command/etc/passwdUser informationText processing - Question #830Essential Commands
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
find commanddirectory searchingcommand line utilities - Question #831Essential Commands
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...
here documentshell redirectionstandard input - Question #832Essential Commands
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
File managementTimestampsLinux commandsFilesystem - Question #833Operation of Running Systems
What is the default nice level when a process is started using the nice command?
nice commandprocess prioritydefault nice levelscheduling - Question #834Essential Commands
Which command will print line numbers before each line in a file?
cat commandline numberingfile viewingcommand options - Question #835Essential Commands
Which RPM command will output the name of the package which installed the file /etc/exports?
RPM Package ManagerPackage ManagementFile OwnershipQuerying Packages - Question #836Essential Commands
How do you get a list of files that have been installed from a dpkg package?
dpkgpackage managementcommand linefile listing - Question #837User and Group Management
You logged in as user tuxl, but now you want to switch users to tux2 with tux2's environment. How would you do this?
User switchingsu commandShell environment - Question #838Essential Commands
Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?
grepregular expressionsfile content filteringcommand line utilities - Question #839Essential Commands
What does the following command do? cat '$TEST'
Shell QuotingVariable Expansioncat commandBash Fundamentals - Question #840Operation of Running Systems
What script is included with the kernel source to patch a kernel?
Kernel managementKernel patchingSystem administration - Question #841Service Configuration
Which option is used in the Samba configuration file to set which files and directories are neither visible to or accessible by the clients?
Samba configurationFile sharingAccess controlsmb.conf directives - Question #842Essential Commands
When building an RPM package, which rpmbuild option is used to unpack sources and apply patches before proceeding with the next steps?
RPMPackage buildingrpmbuildBuild stages - Question #843Storage Management
What command is used to mount a floppy disk image under /mnt/floppy?
mount commandloop devicedisk imagesfile system mounting - Question #844Essential Commands
If the current directory is /root and the kernel source is located in /usr/src/linux, which of the following commands should be used to apply the patch /tmp/foopatch?
patch commandinput redirectionfile system navigationpatch levels - Question #845Essential Commands
What does the following script do? #!/bin/bash find/ -perm +4000 | mail -s "Daily find output" root
find commandfile permissionsSUIDemail reports - Question #846Storage Management
You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /...
mount commandfstabfilesystem mountingCD-ROM - Question #847Service Configuration
With Xorg 7.0, what is the name of the default font server?
Xorgfont serverxfs - Question #848Essential Commands
An administrator is looking for an executable file foo. Which of the following commands would search for foo within directories set in the shell variable, PATH?
Executable filesPATH variableCommand line utilitiesFile location - Question #849Operation of Running Systems
Which of the following does the Filesystem Hierarchy Standard enable? (Select TWO).
Filesystem Hierarchy StandardLinux directory structureFile locationsSystem standards