Certbus > Linux Foundation > Linux Foundation Certifications > LFCS > LFCS Online Practice Questions and Answers

LFCS Online Practice Questions and Answers

Questions 4

When using rpm --verify to check files created during the installation of RPM packages, which ofthe following information is taken into consideration? (Choose THREE correct answers.)

A. Timestamps

B. MD5 checksums

C. Inodes

D. File sizes

E. GnuPG signatures

Browse 260 Q&As
Questions 5

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

A. The user bob is removed from the system's user database.

B. The user bob's home directory is removed.

C. The locate database is updated to drop files owned by bob.

D. All files owned by bob are remove from all mounted filesystems.

E. In case bob was the last member of a group, that group is deleted.

Browse 260 Q&As
Questions 6

Which of the following commands can be used to extract content from a tar file?

A. tar -xvf

B. tar -vf

C. tar -e

D. tar -c

E. tar–v

Browse 260 Q&As
Questions 7

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.

Browse 260 Q&As
Questions 8

What is true regarding a default route?

A. The default route is always used first. When the default route is not available more specific routes are tried.

B. When a default route is set, all other routes are disabled until the default route is deleted.

C. The default route is only used if there is not a more specific route to a destination host or network.

D. Without a default route, no network communication even in directly attached networks is possible.

Browse 260 Q&As
Questions 9

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

A. file /tmp/myfile.txt

B. echo "Hello" >/tmp/myfile.txt

C. sed -ie "s/1/2/" /tmp/myfile.txt

D. echo -n "Hello" >>/tmp/myfile.txt

E. touch /tmp/myfile.txt

Browse 260 Q&As
Questions 10

What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)

A. xdm

Browse 260 Q&As
Questions 11

Whichof 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

Browse 260 Q&As
Questions 12

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

A. dpkg-reconfigure

Browse 260 Q&As
Questions 13

Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?

A. files

Browse 260 Q&As
Questions 14

Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

A. ssh --port 2222 example.com

B. ssh -p 2222 example.com

C. ssh -o Port=2222 example.com

D. ssh -o GatewayPort=2222 example.com

E. ssh example.com:2222

Browse 260 Q&As
Questions 15

Which of the following commands updates the linker cache of shared libraries?

A. mkcache

B. soconfig

C. mkldconfig

D. lddconfig

E. ldconfig

Browse 260 Q&As
Questions 16

What does the command mount -a do?

A. It mounts all available filesystems onto the current directory.

B. It shows all mounted filesystems.

C. It mounts all user mountable filesystems for the current user.

D. It mounts all filesystems listed in /etc/fstab which have the option auto set.

E. It mounts all filesystems listed in /etc/fstab which have the option noauto set.

Browse 260 Q&As
Questions 17

Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

A. resolv

B. dns

C. remote

D. files

E. hosts

Browse 260 Q&As
Questions 18

Which of the following commands shows the current color depth of the X Server?

A. xcd

B. xcdepth

C. xwininfo

D. xcolordepth

E. cat /etc/X11

Browse 260 Q&As
Exam Code: LFCS
Exam Name: Linux Foundation Certified System Administrator (LFCS)
Last Update: Mar 19, 2025
Questions: 260 Q&As

PDF

$49.99

VCE

$55.99

PDF + VCE

$65.99