linux foundation lfcs practice test

Exam Title: LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR

Last update: Nov 27 ,2025
Question 1

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

  • A. shutdown -R 1 now
  • B. shutdown -single now
  • C. init 1
  • D. telinit 1
  • E. runlevel 1
Answer:

C, D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 2

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
Answer:

B

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 3

Which command will display messages from the kernel that were output during the normal boot
sequence?

Answer:

dmesg,
/bin/dmesg

Comments
Question 4

Which of the following commands will write a message to the terminals of all logged in users?

  • A. bcast
  • B. mesg
  • C. print
  • D. wall
  • E. yell
Answer:

D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 5

Which of the following kernel parameters instructs the kernel to suppress most boot messages?

  • A. silent
  • B. verbose=0
  • C. nomesg
  • D. quiet
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 6

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
Answer:

E

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 7

After modifying GNU GRUB's configuration file, which command must be run for the changes to take
effect?

  • A. kill -HUP $(pidof grub)
  • B. grub-install
  • C. grub
  • D. No action is required
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 8

Which of the following commands is used to update the list of available packages when using dpkg
based package management?

  • A. apt-get update
  • B. apt-get upgrade
  • C. apt-cache update
  • D. apt-get refresh
  • E. apt-cache upgrade
Answer:

A

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 9

Which of the following commands lists the dependencies of a given dpkg package?

  • A. apt-cache depends-on package
  • B. apt-cache dependencies package
  • C. apt-cache depends package
  • D. apt-cache requires package
Answer:

C

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 10

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?

  • A. hidemenu
  • B. splash
  • C. timeout
  • D. showmenu
Answer:

C

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Page 1 out of 25
Viewing questions 1-10 out of 260
Go To
page 2