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: 1 / 4
Total 260 questions

Which command displays a list of allbackground tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

In Bash, inserting 1>&2 after a command redirects

A.

standard error to standard input.

B.

standard input to standard error.

C.

standard output to standard error.

D.

standard error to standardoutput.

E.

standard output to standard input.

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

A.

chmod +s /tmp

B.

chmod +t /tmp

C.

chmod 1775 /tmp

D.

chmod 4775 /tmp

E.

chmod 2775 /tmp

Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

A.

substitute

B.

nameserver

C.

search

D.

lookup

E.

method

Which of the following statements is correct regarding the command foo 1> bar?

A.

The stdout from the command foo is appended to the file bar.

B.

The stdout from the command foo overwrites the file bar.

C.

The commandfoo receives its stdin from the file bar.

D.

The command foo receives its stdin from the stdout of the command bar.

E.

The stderr from the command foo is saved to the file bar.

Which character starts a comment line in a shell script file?

A.

;

B.

*

C.

#

D.

/

What is the output of the following command sequence?

for token in a b c; do

echo -n "$token ";

done

A.

anbncn

B.

a b c

C.

"a " "b " "c "

D.

token token token

E.

abc

Which of the following commands will set the variable text to olaf is home?(Choose two)

A.

text=olaf\ is\ home

B.

text=$olaf is home

C.

$text='olaf is home'

D.

text=='olaf is home'

E.

text="olaf is home"

What does the exit status 0 indicate about a process?

A.

The process ended without any problems.

B.

The process was terminated by the user.

C.

The process couldn't finish correctly.

D.

The process waited for an input but got none.

E.

The process finished in time.

Where are user specific crontabs stored?

A.

In the database file /etc/crontab.db which is shared by all users.

B.

As individual per-user files within /var/spool/cron.

C.

As individual per-user files in /etc/cron.user.d.

D.

In the .crontab file in the user's home directory.

E.

In the file /var/cron/user-crontab which is shared by all users.

Which file used by XDM specifies the default wallpaper?

A.

/etc/X11/xdm/Xsetup

B.

/etc/X11/xdm.conf

C.

/etc/X11/xdm/Defaults

D.

/etc/X11/defaults.conf

Which command chain will count the number of regular files with the name of foo.txt within /home?

A.

ls -lR /home | grep foo.txt | wc -l

B.

find /home -type f -name foo.txt | wc -l

C.

find /home -name foo.txt -count

D.

find /home -name foo.txt | wc -l

E.

grep -R foo.txt /home | wc -l

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

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

A.

source /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

E.

run /usr/local/bin/runme.sh

Which file contains the date of the last change of a user's password?

A.

/etc/gshadow

B.

/etc/passwd

C.

/etc/pwdlog

D.

/etc/shadow

E.

/var/log/shadow

Which of the following commands will change the quota for a specific user?

A.

edquota

B.

repquota

C.

quota -e

D.

quota

When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

A.

debug

B.

lsof

C.

nessus

D.

strace

E.

traceroute

What does the ? symbol within regular expressions represent?

A.

Match the preceding qualifier one or more times.

B.

Match the preceding qualifier zero or more times.

C.

Matchthe preceding qualifier zero or one times.

D.

Match a literal ? character.

Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

A.

dnsq

B.

dig

C.

hostname

D.

dnslookup

E.

zoneinfo

What happens after issuing the command vi without any additional parameters?

A.

vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.

B.

vi starts and requires the user to explicitly either create a new or load an existing file.

C.

vi exits with an error message as it cannot be invoked without a file name to operate on.

D.

vi starts in command mode and opens a new empty file.

E.

vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

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