Linux Foundation LFCS Actual Free Exam Questions & Community Discussion
Which grep command will print only the lines that do not end with a / in the file foo?
Correct Answer: D
Vote an answer
CORRECT TEXT
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Correct Answer:
cmdline, /proc/cmdline
Given a file called birthdays containing lines like:
YYYY-MM-DD Name
1983-06-02 Tim
1995-12-17 Sue
Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
YYYY-MM-DD Name
1983-06-02 Tim
1995-12-17 Sue
Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
Correct Answer: A
Vote an answer
Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?
Correct Answer: E
Vote an answer
CORRECT TEXT
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)https://lh3.googleusercontent.com/-5cdclmKnbk/AAAAAAAAAAI/AAAAAAAAADM/-SXesH19Ido/s46-c-k-no/photo.jpg
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)https://lh3.googleusercontent.com/-5cdclmKnbk/AAAAAAAAAAI/AAAAAAAAADM/-SXesH19Ido/s46-c-k-no/photo.jpg
Correct Answer:
/etc/hosts.allow
Which of the following steps prevents a user from obtaining an interactive login session?
Correct Answer: A
Vote an answer
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)
Correct Answer: A,D,E
Vote an answer
CORRECT TEXT
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
Correct Answer:
select
CORRECT TEXT
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Correct Answer:
hwclock, /sbin/hwclock, /usr/sbin/hwclock
Which of the following commands can be used to extract content from a tar file?
Correct Answer: E
Vote an answer
Which of the following commands shows the current color depth of the X Server?
Correct Answer: B
Vote an answer
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?(Choose two)
Correct Answer: C,D
Vote an answer
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.)
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.)
Correct Answer:
/etc/nologin
0
0
0
10
