LFCS Exam Details

  • Exam Code
    :LFCS
  • Exam Name
    :Linux Foundation Certified System Administrator (LFCS)
  • Certification
    :Linux Foundation Certifications
  • Vendor
    :Linux Foundation
  • Total Questions
    :260 Q&As
  • Last Updated
    :May 28, 2026

Linux Foundation LFCS Online Questions & Answers

  • Question 151:

    How can the normal output of a command be written to a file while discarding the error output?

    A. command >2>file 1and>/dev/null
    B. command < output > /dev/null
    C. command > discard-error > file
    D. command > /dev/null 2and>1 output
    E. command >file 2>/dev/null

  • Question 152:

    Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)

    A. /etc/sudoers

  • Question 153:

    In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

    A. By using the command :repeat followed by the number and the command.
    B. By specifying the number right in front of a command such as 4l or 2yj.
    C. By selecting all affected lines using the shift and cursor keys before applying the command.
    D. By issuing acommand such as :set repetition=4 which repeats every subsequent command 4 times.

  • Question 154:

    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)

    A. /usr/share/zoneinfo/

  • Question 155:

    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?

    A. grep '[56]' birthdays
    B. grep 05?6? birthdays
    C. grep '[0-9]*-0[56]-' birthdays
    D. grep 06 birthdays | grep 05

  • Question 156:

    A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

    A. rmdir '~/\dir'
    B. rmdir "~/\dir"
    C. rmdir ~/'dir'
    D. rmdir ~/\dir
    E. rmdir ~/\\dir

  • Question 157:

    Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

    A. systemd.target=rescue.target
    B. systemd.runlevel=rescue.target
    C. systemd.service=rescue.target
    D. systemd.default=rescue.target
    E. systemd.unit=rescue.target

  • Question 158:

    Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

    A. tcpd
    B. inetd
    C. fingerd
    D. mountd
    E. xinetd

  • Question 159:

    Which command makes the shell variable named VARIABLE visible to subshells?

    A. export $VARIABLE
    B. export VARIABLE
    C. set $VARIABLE
    D. set VARIABLE
    E. env VARIABLE

  • Question 160:

    Which of the following commands prints a listof usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

    A. fmt -f 1,4 /etc/passwd
    B. split -c 1,4 /etc/passwd
    C. cut -d : -f 1,4 /etc/passwd
    D. paste -f 1,4 /etc/passwd

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Linux Foundation exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your LFCS exam preparations and Linux Foundation certification application, do not hesitate to visit our Vcedump.com to find your solutions here.