Ultimate Guide to Prepare LFCS Certification Exam for Linux Foundation Certified in 2021
Use Real LFCS Dumps - Linux Foundation Correct Answers updated on 2021
NEW QUESTION 50
What is the effect of the egrep command when the -v option is used?
- A. It only outputs non-matching lines.
- B. It shows the command's version information.
- C. It changes theoutput order showing the last matching line first.
- D. It enables color to highlight matching parts.
Answer: A
NEW QUESTION 51
Which of the following commands will print the last 10 lines of a text file to the standard output?
- A. cat -n 10 filename
- B. dump -n 10 filename
- C. head -n 10 filename
- D. tail -n 10 filename
Answer: D
NEW QUESTION 52
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
- A. telinit 0
- B. shutdown -r now
- C. shutdown -r "rebooting"
- D. telinit 6
- E. shutdown -k now "rebooting"
Answer: B,D
NEW QUESTION 53
What output will the following command produce?
seq 1 5 20
- A. 1 5 10 15
- B. 1 6 1 1 1 6
- C. 5 10 15 20
- D. 2 3 4 5
- E. 1 2 3 4
Answer: B
NEW QUESTION 54
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
- A. It is placed between the tags <Section name="SectionName"> and </Section>
- B. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
- C. It is placed in curly brackets as in Section SectionName { ... }.
- D. It is placed between a line containing Section "SectionName" and a line containing EndSection.
- E. It is placed after the row [SectionName].
Answer: D
NEW QUESTION 55
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
- A. tar -xf backup.tar /home
- B. tar /home backup.tar
- C. tar -xf /home backup.tar
- D. tar -cf backup.tar /home
- E. tar -cf /home backup.tar
Answer: D
NEW QUESTION 56
During a system boot cycle, what program is executed after the BIOS completes its tasks?
- A. The kernel
- B. The init program
- C. The inetd program
- D. The bootloader
Answer: D
NEW QUESTION 57
CORRECT TEXT
The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)
Answer:
Explanation:
/etc/nologin
NEW QUESTION 58
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
- A. The script file must be found in the $PATH.
- B. The file system on which the script resides must be mounted with the option scripts.
- C. The script must begin with a shebang-line (#!) that points to the correct interpreter.
- D. The script file must have the executable permission bit set.
- E. The user issuing the command must be in the group script.
Answer: A,C,D
NEW QUESTION 59
CORRECT TEXT
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
hwclock, /sbin/hwclock, /usr/sbin/hwclock
NEW QUESTION 60
CORRECT TEXT
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)
Answer:
Explanation:
up
NEW QUESTION 61
What is the purpose of the nsswitch.conf file?
- A. It is used to configure LDAP authentication services for the local system.
- B. It is used to configure network protocol port numbers such as for HTTP or SMTP.
- C. It is used to configure which network services will be turned on during the next system boot.
- D. It is used to configure where the C library looks for system information such as host names and user passwords.
Answer: D
NEW QUESTION 62
What is true regarding TCP port 23?
- A. Port 23 is the well known port for the SSH service which provides secure logins.
- B. Port 23 is the well known port for the rlogin service which is SSL secured by default.
- C. Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.
- D. Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.
Answer: D
NEW QUESTION 63
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
- A. It would be directly transmitted on the device eth0.
- B. It would be passed to the default router 192.168.178.1 on wlan0.
- C. It would be passed to the router 192.168.1.1 on eth0.
- D. It would be directly transmitted on the device wlan0.
- E. It would be passed to the default router 255.255.255.0 on eth0.
Answer: C
NEW QUESTION 64
SIMULATION
The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory?
(Provide the full path to the directory, without any country information)
Answer:
Explanation:
/usr/share/zoneinfo/
NEW QUESTION 65
CORRECT TEXT
Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, sendmail, /usr/sbin/sendmail, /usr/lib/sendmail
NEW QUESTION 66
CORRECT TEXT
Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Answer:
Explanation:
/tmp, tmp, /var/tmp, /tmp/, /var/tmp/
NEW QUESTION 67
CORRECT TEXT
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)
Answer:
Explanation:
xorg.conf
NEW QUESTION 68
......
Linux Foundation Certified -LFCS Exam-Practice-Dumps: https://www.newpassleader.com/Linux-Foundation/LFCS-exam-preparation-materials.html
LFCS Premium Files Test pdf - Free Dumps Collection: https://drive.google.com/open?id=1wOr0Y79rFODEsNCBsgYnPPqNc2SkHmzY