Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmaspas7

Easiest Solution 2 Pass Your Certification Exams

LFCS Linux Foundation Certified System Administrator Free Practice Exam Questions (2025 Updated)

Prepare effectively for your Linux Foundation LFCS Linux Foundation Certified System Administrator certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Page: 3 / 4
Total 260 questions

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

A.

tune2fs -d 200 /dev/sda1

B.

tune2fs -c 200 /dev/sda1

C.

tune2fs -i 200 /dev/sda1

D.

tune2fs -n 200/dev/sda1

E.

tune2fs --days 200 /dev/sda1

Which of the following commands puts the output of the command date into the shell variable mydate?

A.

mydate="$(date)"

B.

mydate="exec date"

C.

mydate="$((date))"

D.

mydate="date"

E.

mydate="${date}"

What is the purpose of the iconv command?

A.

It converts bitmap images from one format to another such as PNG to JPEG.

B.

It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).

C.

It displays additional meta information from icon files ending in .ico.

D.

It changes the mode of an inode in the ext4 file system.

E.

It converts files from one character encoding to another.

What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)

Which of the following is correct when talking about mountpoints?

A.

Every existing directory can be used as a mount point.

B.

Only empty directories can be used as a mount point.

C.

Directories need to have the SetUID flag set to be used as a mount point.

D.

Files within a directory are deleted when the directory is used as a mount point.

After running the command umount /mnt, the following error message is displayed:

umount: /mnt: device is busy.

What is a common reason for this message?

A.

The kernel has not finished flushing diskwrites to the mounted device.

B.

A user has a file open in the /mnt directory.

C.

Another file system still contains a symlink to a file inside /mnt.

D.

The files in /mnt have been scanned and added to the locate database.

E.

The kernel thinks that a process is about to open a file in /mnt for reading.

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

A.

The user issuing the command must be in the group script.

B.

The script file must be found in the $PATH.

C.

The script file must have the executable permission bit set.

D.

The script must begin with a shebang-line (#!) that points to the correct interpreter.

E.

The file system on which the script resides must be mounted with the option scripts.

Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Which of the following commands can remove a user from a group?

A.

grouprm

B.

groupmod

C.

passwd

D.

usergroups

E.

usermod

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

A.

SIGTERM

B.

SIGINT

C.

SIGSTOP

D.

SIGKILL

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

A.

dirname

B.

which

C.

basename

D.

query

E.

whereis

What is the default nice level when a process is started using the nice command?

A.

-10

B.

10

C.

20

D.

0

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

A.

A B

B.

A B C

C.

A C

D.

B C

E.

C B A

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

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

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.

#

Why is the correct configuration of a system's time zone important?

A.

Because the conversion of Unix timestamps to local time relies on the time zone configuration.

B.

Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created.

C.

Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.

D.

Because NTP chooses servers nearby based on the configured time zone.

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.

What is the purpose of the Bash built-in export command?

A.

It allows disks to be mounted remotely.

B.

It runs a command as a process in a subshell.

C.

It makes the command history available to subshells.

D.

It sets up environment variables for applications.

E.

It shares NFS partitions for use by other systems on the network.

Page: 3 / 4
Total 260 questions
Copyright © 2014-2025 Solution2Pass. All Rights Reserved