Linux Foundation Certified System Administrator
Prove your elite technical skills as a professional Linux Foundation Certified System Administrator.
4.8★★★★★(170 ratings)
20,634 studentsIntermediate- •Familiarity with basic IT concepts
- •Access to relevant platform tools for hands-on practice
- •Interest in pursuing LFCS certification
- •Systems administrators
- •Linux engineers
- •DevOps pros
This prestigious, performance-based certification validates your ability to competently administer Linux systems in real-world scenarios. You will master command-line operations, file system management, network configuration, and the deployment of essential system services under pressure.
Achieving LFCS status distinguishes you as a highly skilled technician. This credential is held in high regard globally and is a powerful indicator of your practical competence, qualifying you for senior systems administration and infrastructure engineering roles.
What you'll learn
- Practical command-line mastery
- - User and group management
- - File system and volume management
- - Service configuration (HTTP/SSH)
- - Network troubleshooting & security
LFCS
Lectures2
Questions71
Duration30 week
Students20,634
$20.00
Full Free Question Bank (71 Questions)
Linux Foundation Certified System Administrator (LFCS) Practice Questions & Verified Answers
Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.
Jump to Section:
Question #1Part 1
A/etc/keys
B/proc/keys
C/etc/inittab
D/proc/inittab
E/etc/reboot
✓ Verified Answer: C
Question #2Part 1
During a system boot cycle, what program is executed after the BIOS completes its tasks?
AThe bootloader
BThe inetd program
CThe init program
DThe kernel
✓ Verified Answer: A
Question #3Part 1Select 2
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A0
B1
C3
D5
E6
✓ Verified Answer: AE
Question #4Part 1
Which of the following statements is correct when talking about /proc/?
AAll changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
BAll files within /proc/ are read-only and their contents cannot be changed.
CAll changes to files in /proc/ are immediately recognized by the kernel.
DAll files within /proc/ are only readable by the root user.
✓ Verified Answer: C
Question #5Part 1Select 2
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
AEntries for all possible devices get created on boot even if those devices are not connected.
BAdditional rules for udev can be created by adding them to /etc/udev/rules.d/.
CWhen using udev, it is not possible to create block or character devices in /dev/ using mknod.
DThe /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system
EThe content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
✓ Verified Answer: BD
Question #6Part 1Select 2
Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
ABoot device order
BLinux kernel version
CTimezone
DHardware configuration
EThe system's hostname
✓ Verified Answer: AD
Question #7Part 1Select 2
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
Ashutdown -r now
Bshutdown -r "rebooting"
Ctelinit 6
Dtelinit 0
Eshutdown -k now "rebooting"
✓ Verified Answer: AC
Question #8Part 1Select 3
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
Astartd
Bsystemd
CUpstart
DSysInit
ESysV init
✓ Verified Answer: BCE
Question #9Part 1Select 3
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
ADevice IRQ settings
BPCI bus speed
CSystem battery type
DDevice vendor identification
EEthernet MAC address
✓ Verified Answer: ABD
Question #10Part 1Select 2
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
Ashutdown -R 1 now
Bshutdown -single now
Cinit 1
Dtelinit 1
Erunlevel 1
✓ Verified Answer: CD
Question #11Part 1
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
A/lib/init.so
B/sbin/init
C/etc/rc.d/rcinit
D/proc/sys/kernel/init
E/boot/init
✓ Verified Answer: B
Question #12Part 1
Which of the following commands will write a message to the terminals of all logged in users?
Abcast
Bmesg
Cprint
Dwall
Eyell
✓ Verified Answer: D
Question #13Part 1
Which of the following kernel parameters instructs the kernel to suppress most boot messages?
Asilent
Bverbose=0
Cnomesg
Dquiet
✓ Verified Answer: D
Question #14Part 1
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
Asystemd.target=rescue.target
Bsystemd.runlevel=rescue.target
Csystemd.service=rescue.target
Dsystemd.default=rescue.target
Esystemd.unit=rescue.target
✓ Verified Answer: E
Question #15Part 1
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
Asystemd.target=rescue.target
Bsystemd.runlevel=rescue.target
Csystemd.service=rescue.target
Dsystemd.default=rescue.target
Esystemd.unit=rescue.target
✓ Verified Answer: E
Question #16Part 1
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
Akill -HUP $(pidof grub)
Bgrub-install
Cgrub
DNo action is required
✓ Verified Answer: B
Question #17Part 1
Which of the following commands is used to update the list of available packages when using dpkg based package management?
Aapt-get update
Bapt-get upgrade
Capt-cache update
Dapt-get refresh
Eapt-cache upgrade
✓ Verified Answer: A
Question #18Part 1
Which of the following commands lists the dependencies of a given dpkg package?
Aapt-cache depends-on package
Bapt-cache dependencies package
Capt-cache depends package
Dapt-cache requires package
✓ Verified Answer: C
Question #19Part 1
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
Ahidemenu
Bsplash
Ctimeout
Dshowmenu
✓ Verified Answer: C
Question #20Part 1Select 3
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
ATo create RAID 9 arrays.
BTo dynamically change the size of logical volumes.
CTo encrypt logical volumes.
DTo create snapshots.
ETo dynamically create or delete logical volumes.
✓ Verified Answer: BDE
Question #21Part 1
Which of the following commands updates the linker cache of shared libraries?
Amkcache
Bsoconfig
Cmkldconfig
Dlddconfig
Eldconfig
✓ Verified Answer: E
Question #22Part 1
Which of the following commands lists all currently installed packages when using RPM package management?
Ayum --query --all
Byum --list --installed
Crpm --query --all
Drpm --list –installed
✓ Verified Answer: C
Question #23Part 1
Which of the following commands can be used to download the RPM package kernel without installing it?
Ayum download --no-install kernel
Byumdownloader kernel
Crpm --download --package kernel
Drpmdownload kernel
✓ Verified Answer: B
Question #24Part 1Select 3
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
ATimestamps
BMD5 checksums
CInodes
DFile sizes
EGnuPG signatures
✓ Verified Answer: ABD
Question #25Part 1
Which of the following is correct when talking about mount points?
AEvery existing directory can be used as a mount point.
BOnly empty directories can be used as a mount point.
CDirectories need to have the SetUID flag set to be used as a mount point.
DFiles within a directory are deleted when the directory is used as a mount point.
✓ Verified Answer: A
Question #26Part 1
Which function key is used to start Safe Mode in Windows NT?
AF10
BF8
CF6
DWindows NT does not support Safe Mode
✓ Verified Answer: D
Question #27Part 1
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
ALD_LOAD_PATH
BLD_LIB_PATH
CLD_LIBRARY_PATH
DLD_SHARE_PATH
ELD_RUN_PATH
✓ Verified Answer: C
Question #28Part 1
Which RPM command will output the name of the package which supplied the file /etc/exports?
Arpm -F /etc/exports
Brpm -qf /etc/exports
Crpm -Kl /etc/exports
Drpm -qp /etc/exports
Erpm -qi /etc/exports
✓ Verified Answer: B
Question #29Part 1
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
A--clean
B--delete
C--purge
D–remove
✓ Verified Answer: C
Question #30Part 1
Which file should be edited to select the network locations from which Debian installation package files are loaded?
A/etc/dpkg/dpkg.cfg
B/etc/apt/apt.conf
C/etc/apt/apt.conf.d
D/etc/apt/sources.list
E/etc/dpkg/dselect.cfg
✓ Verified Answer: D
Question #31Part 1
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
Add if=/dev/zero of=/dev/sda bs=512
Bdd if=/dev/zero of=/dev/sda bs=512 count=1
Cdd if=/dev/zero of=/dev/sda bs=440 count=1
Ddd if=/dev/zero of=/dev/sda bs=440
✓ Verified Answer: C
Question #32Part 1
Which of the following commands can be used to create a USB storage media from a disk image?
Agdisk
Bdd
Ccc
Dfdisk
Emount
✓ Verified Answer: B
Question #33Part 1
In Bash, inserting 1>&2 after a command redirects
Astandard error to standard input.
Bstandard input to standard error.
Cstandard output to standard error.
Dstandard error to standard output.
Estandard output to standard input.
✓ Verified Answer: C
Question #34Part 1
What command will generate a list of user names from /etc/passwd along with their login shell?
Acolumn -s : 1,7 /etc/passwd
Bchop -c 1,7 /etc/passwd
Ccolrm 1,7 /etc/passwd
Dcut -d: -f1,7 /etc/passwd
✓ Verified Answer: D
Question #35Part 1
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
A-dirmax
B-maxdepth
C-maxlevels
D-n
E-s
✓ Verified Answer: B
Question #36Part 1
Which of the following statements is correct regarding the command foo 1> bar?
AThe stdout from the command foo is appended to the file bar.
BThe stdout from the command foo overwrites the file bar.
CThe command foo receives its stdin from the file bar.
DThe command foo receives its stdin from the stdout of the command bar.
EThe stderr from the command foo is saved to the file bar.
✓ Verified Answer: B
Question #37Part 1
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
Akill -PIPE 123
Bkill -KILL 123
Ckill -STOP 123
Dkill -TERM 123
✓ Verified Answer: D
Question #38Part 1
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
A9
B19
C49
D99
✓ Verified Answer: B
Question #39Part 1
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
Ai (lowercase)
BP (uppercase)
Cp (lowercase)
DU (uppercase)
Eu (lowercase)
✓ Verified Answer: C
Question #40Part 1
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
Armdir '~/\dir'
Brmdir "~/\dir"
Crmdir ~/'dir'
Drmdir ~/\dir
Ermdir ~/\\dir
✓ Verified Answer: E
Question #41Part 1
In compliance with the FHS, in which of the directories are man pages found?
A/usr/share/man
B/opt/man
C/usr/doc/
D/var/pkg/man
E/var/man
✓ Verified Answer: A
Question #42Part 1
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
Acat < myapp | cat > file1.log
Bmyapp 0>&1 | cat > file1.log
Cmyapp | cat > file1.log
Dmyapp | tee file1.log
Etee myapp file1.log
✓ Verified Answer: D
Question #43Part 1
What is the output of the following command? echo "Hello World" | tr -d aieou
AHello World
Beoo
CHll Wrld
Deoo Hll Wrld
✓ Verified Answer: C
Question #44Part 1
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
A<<
B<|
C!<
D&<
✓ Verified Answer: A
Question #45Part 1
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
Afile /tmp/myfile.txt
Becho "Hello" >/tmp/myfile.txt
Csed -ie "s/1/2/" /tmp/myfile.txt
Decho -n "Hello" >>/tmp/myfile.txt
Etouch /tmp/myfile.txt
✓ Verified Answer: C
Question #46Part 1
What is the default nice level when a process is started using the nice command?
A-10
B10
C20
D0
✓ Verified Answer: D
Question #47Part 1
What is the default action of the split command on an input file?
AIt will break the file into new files of 1,024 byte pieces each.
BIt will break the file into new files of 1,000 line pieces each.
CIt will break the file into new files of 1,024 kilobyte pieces each.
DIt will break the file into new files that are no more than 5% of the size of the original file.
✓ Verified Answer: B
Question #48Part 1
What is the difference between the i and a commands of the vi editor?
Ai (interactive) requires the user to explicitly switch between vi modes whereas a (automatic)
Bi (insert) inserts text before the current cursor position whereas a (append) inserts text after
Ci (independent rows) starts every new line at the first character whereas a (aligned rows)
Di (interrupt) temporarily suspends editing of a file to the background whereas a (abort)
✓ Verified Answer: B
Question #49Part 1
Which of the following commands moves and resumes in the background the last stopped shell job?
Arun
Bbg
Cfg
Dback
✓ Verified Answer: B
Question #50Part 1
What is the effect of the egrep command when the -v option is used?
AIt enables color to highlight matching parts.
BIt only outputs non-matching lines.
CIt shows the command's version information.
DIt changes the output order showing the last matching line first.
✓ Verified Answer: B
Question #51Part 1
What does the symbol within regular expressions represent?
AMatch the preceding qualifier one or more times.
BMatch the preceding qualifier zero or more times.
CMatch the preceding qualifier zero or one times.
DMatch a literal character.
✓ Verified Answer: C
Question #52Part 1
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?
ABy using the command :repeat followed by the number and the command.
BBy specifying the number right in front of a command such as 4l or 2yj.
CBy selecting all affected lines using the shift and cursor keys before applying the command.
DBy issuing a command such as :set repetition=4 which repeats every subsequent command
✓ Verified Answer: B
Question #53Part 1
Which of the following files, located in the user home directory, is used to store the Bash history?
A.bash_history
B.bash_histfile
C.history
D.bashrc_history
E.history_bash
✓ Verified Answer: A
Question #54Part 1
Which of the following commands displays the contents of a gzip compressed tar archive?
Agzip archive.tgz | tar xvf -
Btar ztf archive.tgz
Cgzip -d archive.tgz | tar tvf -
Dtar cf archive.tgz
✓ Verified Answer: B
Question #55Part 1
Which grep command will print only the lines that do not end with a / in the file foo?
Agrep '/$' foo
Bgrep '/#' foo
Cgrep -v '/$' foo
Dgrep -v '/#' foo
✓ Verified Answer: C
Question #56Part 1
Which of the following commands is used to change options and positional parameters for a running Bash?
Ahistory
Bset
Cbashconf
Dsetsh
Eenvsetup
✓ Verified Answer: B
Question #57Part 1
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
Ased '/bob/Bob' letter > newletter
Bsed s/bob/Bob/ letter < newletter
Csed 's/bob/Bob' letter > newletter
Dsed 's/bob/Bob/g' letter > newletter
Esed 's/bob, Bob/' letter > newletter
✓ Verified Answer: D
Question #58Part 1
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
Asource /usr/local/bin/runme.sh
B. /usr/local/bin/runme.sh
C/bin/bash /usr/local/bin/runme.sh
D/usr/local/bin/runme.sh
Erun /usr/local/bin/runme.sh
✓ Verified Answer: B
Question #59Part 1
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?
A/usr/bin/prog is executed with a nice level of -5.
B/usr/bin/prog is executed with a nice level of 5.
C/usr/bin/prog is executed with a priority of -5.
D/usr/bin/prog is executed with a priority of 5.
✓ Verified Answer: B
Question #60Part 1
Which shell command is used to continue background execution of a suspended command?
A&
Bbg
Ccont
Dexec
E:&
✓ Verified Answer: B
Question #61Part 2
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A2>&1 >filename
B>filename 2>&1
C1>&2>filename
D>>filename
E1&2>filename
✓ Verified Answer: B
Question #62Part 2
In the vi editor, which of the following commands will copy the current line into the vi buffer?
Ac
Bcc
C1c
Dyy
E1y
✓ Verified Answer: D
Question #63Part 2Select 2
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
Aesc ZZ
Bctrl :w!
Cesc zz
Desc :wq!
Ectrl XX
✓ Verified Answer: AD
Question #64Part 2
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
A-10
B0
C10
D20
✓ Verified Answer: C
Question #65Part 2
Which of the following commands will reduce all consecutive spaces down to a single space?
Atr '\s' ' ' < a.txt > b.txt
Btr -c ' ' < a.txt > b.txt
Ctr -d ' ' < a.txt > b.txt
Dtr -r ' ' '\n' < a.txt > b.txt
Etr -s ' ' < a.txt > b.txt
✓ Verified Answer: E
Question #66Part 2
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
A!
B+
C&
D%
E#
✓ Verified Answer: C
Question #67Part 2
Which of the following commands will print the last 10 lines of a text file to the standard output?
Acat -n 10 filename
Bdump -n 10 filename
Chead -n 10 filename
Dtail -n 10 filename
✓ Verified Answer: D
Question #68Part 2
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
Afmt -f 1,4 /etc/passwd
Bsplit -c 1,4 /etc/passwd
Ccut -d : -f 1,4 /etc/passwd
Dpaste -f 1,4 /etc/passwd
✓ Verified Answer: C
Question #69Part 2
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
ASIGTERM
BSIGINT
CSIGSTOP
DSIGKILL
✓ Verified Answer: B
Question #70Part 2
What happens after issuing the command vi without any additional parameters?
Avi starts and loads the last file used and moves the cursor to the position where vi was when
Bvi starts and requires the user to explicitly either create a new or load an existing file.
Cvi exits with an error message as it cannot be invoked without a file name to operate on.
Dvi starts in command mode and opens a new empty file.
Evi starts and opens a new file which is filled with the content of the vi buffer if the buffer
✓ Verified Answer: B
Question #71Part 2
Which of the following command sets the Bash variable named TEST with the content FOO?
Aset TEST="FOO"
BTEST = "FOO"
Cvar TEST="FOO"
DTEST="FOO"
✓ Verified Answer: D
More LINUX-FOUNDATION Certification Practice Exams
Explore related LINUX-FOUNDATION exam dumps and free practice question banks.
HFCP65 Questions
Hyperledger Fabric Certified Practitioner
KCNA51 Questions
Kubernetes and Cloud Native Associate
KCSA65 Questions
Kubernetes and Cloud Native Security Associate
LFCA65 Questions
Linux Foundation Certified IT Associate
📢 Unlock Full Access to Success!
"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."
👉 Click the button and follow the instructions to secure your full access immediately!