Skip to content

LFCS Practice Questions

Prepare for LFCS with more than an answer.

454 questions in the full set20 sample questionsUpdated Sep 16, 2021
Exam fee
$395 USD
Passing score
66
Level
Associate
Valid for
3 years
Domains covered on the exam 6
  1. Essential Commands25%
  2. Operation of Running Systems20%
  3. User and Group Management15%
  4. Networking15%
  5. Service Configuration15%
  6. Storage Management10%
  1. 1

    Given the following routing table:

    How would an outgoing packet to the destination 192.168.2.150 be handled?

    Question exhibit
    Show answer details

    Correct answer: E

    E

  2. 2

    What is the effect of the egrep command when the -v option is used?

    Show answer details

    Correct answer: B

    B

  3. 3

    What is the difference between the commands test -e path and test -f path?

    Show answer details

    Correct answer: C

    C

  4. 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. 5

    A script needs to process a list of files, but some filenames contain spaces. To handle this correctly, a while loop is used with read. Which of the following is the most robust way to pipe the output of find to 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 ... -print0 separates filenames with a null character. The while loop is configured with read -d '' to use the null character as a delimiter. IFS= prevents trimming of leading/trailing whitespace, and -r prevents backslash interpretation, ensuring filenames are read exactly as they are.

  6. 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. 7

    Which of the following is a valid IPv6 address?

    Show answer details

    Correct answer: A

    A

  8. 8

    Which file inside the CUPS configuration directory contains the definition of the printers?

    Show answer details

    Correct answer: D

    D

  9. 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. 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

Create an account to continue.