LFCS Exam Questions
676 real LFCS exam questions with expert-verified answers and explanations. Page 1 of 14.
- Question #1Essential Commands
What output will the following command produce? seq 1 5 20
seq commandcommand line utilitiessequence generation - Question #2Essential Commands
When the command echo $$ outputs 12942, what is the meaning of 12942?
Shell variablesProcess ID (PID)Bash shellCommand line basics - Question #3Essential Commands
Which of the following commands puts the output of the command date into the shell variable mydate?
Command substitutionShell variablesBash syntaxLinux command line - Question #4Essential Commands
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
Environment Variablesenv commandShell ExecutionProcess Environment - Question #5Essential Commands
When the command echo $ outputs 1, which of the following statements is true?
Shell variablesExit statusCommand execution - Question #7Operation of Running Systems
What is the purpose of the file /etc/profile?
/etc/profileEnvironment variablesLogin shellSystem configuration - Question #8Service Configuration
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
xorg.confX11 configurationConfiguration file syntax - Question #12Service Configuration
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
TCP WrappersAccess ControlService Securityhosts.allow - Question #13User and Group Management
Which of the following commands can be used to limit the amount of memory a user may use?
ulimitresource limitsmemory limitsuser resource management - Question #14Networking
Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
sshremote connectionport specificationcommand options - Question #16Networking
What is a purpose of an SSH host key?
SSHHost KeyServer AuthenticationNetwork Security - Question #18Essential Commands
Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?
ulimitcore fileresource limitsshell limits - Question #20Service Configuration
Which file used by XDM specifies the default wallpaper?
XDMDisplay ManagerConfiguration filesWallpaper - Question #21Essential Commands
What is the purpose of the iconv command?
iconv commandcharacter encodingfile conversioncommand-line utility - Question #22Service Configuration
In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?
Cron serviceCrontab access controlConfiguration filesDefault system behavior - Question #23User and Group Management
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
/etc/passwd/etc/shadowPassword storageUser accounts - Question #24User and Group Management
Which command can be used to delete a group from a Linux system?
Linux commandsGroup managementgroupdelSystem administration - Question #25User and Group Management
Which of the following files assigns a user to its primary group?
User ManagementGroupsPrimary Group/etc/passwd - Question #28User and Group Management
What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)
userdel commanduser account removalhome directory managementcommand line options - Question #30User and Group Management
To prevent a specific user from scheduling tasks with at, what should the administrator do?
at job schedulinguser access controlat.deny file - Question #31Operation of Running Systems
What is true about the ntpdate command?
ntpdate commandtime synchronizationNTP clientsystem clock - Question #33Essential Commands
Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?
CUPSPrintingCommand-line toolslpr - Question #36Operation of Running Systems
Which of the following commands is used to rotate, compress, and mail system logs?
log rotationlog managementlogrotate commandsystem maintenance - Question #37Operation of Running Systems
What is the purpose of the command mailq?
Mail QueueMTAEmail DeliveryCommand Line - Question #38Operation of Running Systems
Which of the following is observed and corrected by a NTP client?
NTPTime SynchronizationSystem ClockReference Clock - Question #41Operation of Running Systems
Why is the correct configuration of a system's time zone important?
Time ZoneSystem TimeUnix TimestampLocalization - Question #42Service Configuration
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)
MTAMail Transfer AgentEmail servicesLinux services - Question #43Operation of Running Systems
What is true regarding the command sendmail?
sendmail commandMTAemail systemsPostfix - Question #44Service Configuration
Which file inside the CUPS configuration directory contains the definition of the printers?
CUPSPrintingConfiguration filesService configuration - Question #45Service Configuration
What is true regarding the file ~/.forward?
Email Forwarding~/.forwardMTAUser Mail Configuration - Question #46Service Configuration
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
Syslog configurationSystem loggingLog redirectionVirtual consoles - Question #47Essential Commands
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
date commandsystem clocktime managementcommand line utilities - Question #48Essential Commands
Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)
journalctlloggingtime filteringsystemd - Question #49Service Configuration
Which of the following are syslog facilities? (Choose TWO correct answers.)
syslogloggingfacilitiessystem logging - Question #51Networking
Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)
IPv4 private addressesIANARFC 1918Network addressing - Question #52Networking
What is true regarding TCP port 23?
TCP PortsTelnetNetwork ProtocolsSecurity Basics - Question #54Networking
Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)
DNS client configurationresolv.confNetworking keywords - Question #56Networking
On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
route commandDNS resolutionTroubleshootingNetworking basics - Question #57Networking
Which of the following is a valid IPv6 address?
IPv6IP AddressingNetwork Syntax - Question #58Networking
Which of the following details is NOT provided in any output from the netstat utility?
netstat utilitynetwork informationLinux commandsnetwork connections - Question #59Networking
Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)
/etc/nsswitch.confHostname resolutionName Service SwitchDNS - Question #60Networking
What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)
NetworkingIP RoutingDefault GatewayCommand Line Utilities - Question #61Networking
Which of the following is true about IPv6?
IPv6Networking conceptsAddressingBroadcast vs Multicast - Question #63Networking
Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?
DNS debuggingNetworking toolsdig commandName resolution - Question #66Service Configuration
What is the purpose of the nsswitch.conf file?
nsswitch.confname resolutionsystem configurationC library - Question #67Networking
Which of the following statements is valid in the file /etc/nsswitch.conf?
/etc/nsswitch.confName Service SwitchHost resolutionDNS order - Question #68Networking
What is true regarding a default route?
Default RouteNetwork RoutingRouting TableLongest Prefix Match - Question #69Networking
Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)
routing tablenetworking commandsnetstatroute command - Question #70Service Configuration
Each entry in a crontab must end with what character?
croncrontabschedulingsyntax - Question #71Operation of Running Systems
Where are user specific crontabs stored?
croncrontab storagejob schedulingfile paths