Summer Special Discount 60% Offer - Ends in 0d 00h 00m 00s - Coupon code: brite60

ExamsBrite Dumps

Linux Foundation Certified System Administrator Question and Answers

Linux Foundation Certified System Administrator

Last Update Oct 15, 2025
Total Questions : 260

We are offering FREE LFCS Linux Foundation exam questions. All you do is to just go and sign up. Give your details, prepare LFCS free exam questions and then go for complete pool of Linux Foundation Certified System Administrator test questions that will help you more.

LFCS pdf

LFCS PDF

$42  $104.99
LFCS Engine

LFCS Testing Engine

$50  $124.99
LFCS PDF + Engine

LFCS PDF + Testing Engine

$66  $164.99
Questions 1

What is the purpose of the nsswitch.conf file?

Options:

A.  

It is used to configure where the C library looks for system information such as host names and user passwords.

B.  

It is used to configure network protocol port numbers such as for HTTP or SMTP.

C.  

It is used to configure LDAP authentication services for the local system.

D.  

It is used to configure which network services will be turned on during the next system boot.

Discussion 0
Questions 2

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Options:

A.  

apropos

B.  

which

C.  

find

D.  

query

E.  

whereis

Discussion 0
Questions 3

What is the correct command to extract the contents of the archive file download.bz2?

Options:

A.  

unpack download.bz2

B.  

unzip2 download.bz2

C.  

bunzip2 download.bz2

D.  

unzip download.bz2

E.  

uncompress download.bz2

Discussion 0
Questions 4

Which of the following is a valid IPv6 address?

Options:

A.  

2001:db8:3241::1

B.  

2001::db8:4581::1

C.  

2001:db8:0g41::1

D.  

2001%db8%9990%%1

E.  

2001.db8.819f..1

Discussion 0
Questions 5

Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Options:

A.  

It would be passed to the default router 192.168.178.1 on wlan0.

B.  

It would be directly transmitted on the device eth0.

C.  

It would be passed to the default router 255.255.255.0 on eth0.

D.  

It would be directly transmitted on the device wlan0.

E.  

It would be passed to the router 192.168.1.1 on eth0.

Discussion 0
Questions 6

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?

Options:

A.  

i (lowercase)

B.  

P (uppercase)

C.  

p (lowercase)

D.  

U (uppercase)

E.  

u (lowercase)

Discussion 0
Questions 7

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Options:

A.  

usermod

B.  

passwd

C.  

chattr

D.  

chage

E.  

chsh

Discussion 0
Questions 8

Which of the following commands will print the last 10 lines of a text file to the standard output?

Options:

A.  

cat -n 10 filename

B.  

dump -n 10 filename

C.  

head -n 10 filename

D.  

tail -n 10 filename

Discussion 0
Questions 9

What is a purpose of an SSH host key?

Options:

A.  

It must be sent by any SSH client in addition to a user key in order to identify the client's host.

B.  

It provides the server's identity information to connecting SSH clients.

C.  

It is the root key by which all user SSH keys must be signed.

D.  

It authenticates any user that logs into a remote machine from the key's host.

E.  

It is used by system services like cron, syslog or a backup job to automatically connect to remote hosts.

Discussion 0
Questions 10

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

Options:

A.  

;

B.  

*

C.  

#

D.  

/

Discussion 0
Questions 11

Which of the following commands can be used to limit the amount of memory a user may use?

Options:

A.  

umask

B.  

usermod

C.  

ulimit

D.  

passwd

E.  

chage

Discussion 0
Questions 12

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Options:

A.  

chown dan/staff file.txt

B.  

chown dan:staff file.txt

C.  

chown -u dan -g staff file.txt

D.  

chown dan -g staff file.txt

Discussion 0
Questions 13

Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Options:

A.  

sshd

B.  

ssh-agent

C.  

ssh-keygen

D.  

ssh-add

Discussion 0
Questions 14

What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

Options:

A.  

Device IRQ settings

B.  

PCI bus speed

C.  

System battery type

D.  

Device vendor identification

E.  

Ethernet MAC address

Discussion 0
Questions 15

Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Options:

Discussion 0
Questions 16

Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Options:

A.  

Boot device order

B.  

Linux kernel version

C.  

Timezone

D.  

Hardware configuration

E.  

The system's hostname

Discussion 0
Questions 17

Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

Options:

Discussion 0
Questions 18

What is the effect of the egrep command when the -v option is used?

Options:

A.  

It enables color to highlight matching parts.

B.  

It only outputs non-matching lines.

C.  

It shows the command's version information.

D.  

It changes theoutput order showing the last matching line first.

Discussion 0
Questions 19

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

Options:

A.  

dirname

B.  

which

C.  

basename

D.  

query

E.  

whereis

Discussion 0
Questions 20

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Options:

A.  

-10

B.  

0

C.  

10

D.  

20

Discussion 0
Questions 21

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

Options:

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

Discussion 0
Questions 22

Which of the following details is NOT provided in any output from the netstat utility?

Options:

A.  

broadcast services

B.  

interface statistics

C.  

masquerading connections

D.  

network connections

E.  

routing tables

Discussion 0
Questions 23

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Options:

A.  

0 * * * 30 myscript

B.  

30 * * * 6 myscript

C.  

30 0 * * 0 myscript

D.  

30 0-23 * * 0 myscript

E.  

0 0-23 * * 30 myscript

Discussion 0
Questions 24

Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

Options:

A.  

127.0.0.0/8

B.  

10.0.0.0/8

C.  

169.255.0.0/16

D.  

172.16.0.0/12

E.  

192.168.0.0/16

Discussion 0
Questions 25

Which of the following is the device file name for the second partition on the only SCSI drive?

Options:

A.  

/dev/hda1

B.  

/dev/sda2

C.  

/dev/sd0a2

D.  

/dev/sd1p2

Discussion 0
Questions 26

Which of the following sequences in the vi editor saves the opened document and exits the editor?(Choose TWO correct answers.)

Options:

A.  

esc ZZ

B.  

ctrl :w!

C.  

esc zz

D.  

esc :wq!

E.  

ctrl XX

Discussion 0
Questions 27

Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)

Options:

Discussion 0
Questions 28

How can the existing environment variable FOOBAR be suppressedfor the execution of the script./myscript only?

Options:

A.  

unset -v FOOBAR;./myscript

B.  

set -a FOOBAR="";./myscript

C.  

env -u FOOBAR./myscript

D.  

env -i FOOBAR./myscript

Discussion 0
Questions 29

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

Options:

Discussion 0
Questions 30

Which grep command will print only the lines that do not end with a / in the file foo?

Options:

A.  

grep '/$' foo

B.  

grep '/#' foo

C.  

grep -v '/$' foo

D.  

grep -v '/#' foo

Discussion 0
Questions 31

After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

Options:

A.  

By creating an ACL redirection from the old to the new path of the data.

B.  

By creating a hard link from the old to the new path of the data.

C.  

By creating a symbolic link from the old to the new path of the data.

D.  

By running the command touch on the old path.

E.  

By mounting the new filesystem on the original path of the data.

Discussion 0
Questions 32

Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?

Options:

A.  

tar /home backup.tar

B.  

tar -cf /home backup.tar

C.  

tar -xf /home backup.tar

D.  

tar -xf backup.tar /home

E.  

tar -cf backup.tar /home

Discussion 0
Questions 33

Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?

Options:

A.  

cmd || foo.txt

B.  

cmd | foo.txt

C.  

cmd && foo.txt

D.  

cmd >> foo.txt

E.  

cmd > foo.txt

Discussion 0
Questions 34

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

Options:

A.  

cat /proc/self/mounts

B.  

free

C.  

mount

D.  

lsmounts

E.  

cat /proc/filesystems

Discussion 0
Questions 35

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

Options:

Discussion 0
Questions 36

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Options:

Discussion 0
Questions 37

Which command makes the shell variable named VARIABLE visible to subshells?

Options:

A.  

export $VARIABLE

B.  

export VARIABLE

C.  

set $VARIABLE

D.  

set VARIABLE

E.  

env VARIABLE

Discussion 0
Questions 38

During a system boot cycle, what program is executed after the BIOS completes its tasks?

Options:

A.  

The bootloader

B.  

The inetd program

C.  

The init program

D.  

The kernel

Discussion 0
Questions 39

How can the current directory and its subdirectories be searched for the file named MyFile.xml?

Options:

A.  

find . -name MyFile.xml

B.  

grep MyFile.xml | find

C.  

grep -r MyFile.xml .

D.  

less MyFile.xml

E.  

search Myfile.xml ./

Discussion 0