LFCS Practice Questions
Prepare for LFCS with more than an answer.
- Exam fee
- $395 USD
- Passing score
- 66
- Level
- Associate
- Valid for
- 3 years
Domains covered on the exam 6
- Essential Commands25%
- Operation of Running Systems20%
- User and Group Management15%
- Networking15%
- Service Configuration15%
- Storage Management10%
- 1
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?

Show answer details
Correct answer: E
E
- 2
What is the effect of the egrep command when the -v option is used?
Show answer details
Correct answer: B
B
- 3
What is the difference between the commands test -e path and test -f path?
Show answer details
Correct answer: C
C
- 4
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?Show answer details
Correct answer: C
C
- 5
A script needs to process a list of files, but some filenames contain spaces. To handle this correctly, a
whileloop is used withread. Which of the following is the most robust way to pipe the output offindto this loop?flowchart TD A[find /data -name '*.txt'] --> B{Pipe to Loop} B --> C[while read ...] C --> D[Process file]Show answer details
Correct answer: B
This is the most robust and correct method.
find ... -print0separates filenames with a null character. Thewhileloop is configured withread -d ''to use the null character as a delimiter.IFS=prevents trimming of leading/trailing whitespace, and-rprevents backslash interpretation, ensuring filenames are read exactly as they are. - 6
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
Show answer details
Correct answer: A, C
A, C
A, C
- 7
Which of the following is a valid IPv6 address?
Show answer details
Correct answer: A
A
- 8
Which file inside the CUPS configuration directory contains the definition of the printers?
Show answer details
Correct answer: D
D
- 9
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
Show answer details
Correct answer: B, C
B, C
B, C
- 10
Which of the following commands can be used to display the inode number of a given file?
Show answer details
Correct answer: B
B
