LFCS Sample Questions & Answers
Core commands for files, text processing and archiving make up the biggest share, alongside keeping systems running day to day, administering users and groups, network and service configuration, web and database services, and managing storage.
Launch the full LFCS simulator →Showing 10 of 20 free samples.
- Question 1
When the command echo $ outputs 1, which of the following statements is true?
Show answer & explanation
Correct answer: C
C
- Question 2
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
Show answer & explanation
Correct answer: A
A
- Question 3
Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)
Show answer & explanation
Correct answer: A
A
- Question 4
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.)
Show answer & explanation
Correct answer: A
A
- Question 5
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
Show answer & explanation
Correct answer: A
A
- Question 6
Which of the following commands displays the contents of a gzip compressed tar archive?
Show answer & explanation
Correct answer: B
B
- Question 7
Which of the following commands will print the last 10 lines of a text file to the standard output?
Show answer & explanation
Correct answer: D
D
- Question 8
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)
Show answer & explanation
Correct answer: A
A
- Question 9
What is the correct command to extract the contents of the archive file download.bz2?
Show answer & explanation
Correct answer: C
C
- Question 10
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the user add command? (Specify the full path to the directory.)
Show answer & explanation
Correct answer: A
A
Ready for the real thing?
The full LFCS simulator has every exam-style question, timed mode, and instant scoring.