Labour Day Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 2493360325

Good News !!! LFCS Linux Foundation Certified System Administrator is now Stable and With Pass Result

LFCS Practice Exam Questions and Answers

Linux Foundation Certified System Administrator

Last Update 5 days ago
Total Questions : 260

Linux Foundation Certified System Administrator is stable now with all latest exam questions are added 5 days ago. Incorporating LFCS practice exam questions into your study plan is more than just a preparation strategy.

By familiarizing yourself with the Linux Foundation Certified System Administrator exam format, identifying knowledge gaps, applying theoretical knowledge in Linux Foundation practical scenarios, you are setting yourself up for success. LFCS exam dumps provide a realistic preview, helping you to adapt your preparation strategy accordingly.

LFCS exam questions often include scenarios and problem-solving exercises that mirror real-world challenges. Working through LFCS dumps allows you to practice pacing yourself, ensuring that you can complete all Linux Foundation Certified System Administrator exam questions within the allotted time frame without sacrificing accuracy.

LFCS PDF

LFCS PDF (Printable)
$48
$119.99

LFCS Testing Engine

LFCS PDF (Printable)
$56
$139.99

LFCS PDF + Testing Engine

LFCS PDF (Printable)
$70.8
$176.99
Question # 1

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

Options:

A.  

mydate="$(date)"

B.  

mydate="exec date"

C.  

mydate="$((date))"

D.  

mydate="date"

E.  

mydate="${date}"

Discussion 0
Question # 2

Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

Options:

A.  

startd

B.  

systemd

C.  

Upstart

D.  

SysInit

E.  

SysV init

Discussion 0
Question # 3

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Options:

A.  

/sbin/mke2fs -j /dev/sdb1

B.  

/sbin/mkfs -t ext3 /dev/sdb1

C.  

/sbin/mkfs -c ext3 /dev/sdb1

D.  

/sbin/mke3fs -j/dev/sdb1

Discussion 0
Question # 4

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

Options:

A.  

shutdown -R 1 now

B.  

shutdown -single now

C.  

init 1

D.  

telinit 1

E.  

runlevel 1

Discussion 0
Question # 5

Which of the following statements is valid in the file /etc/nsswitch.conf?

Options:

A.  

multi on

B.  

192.168.168.4 dns-server

C.  

hosts: files dns

D.  

include /etc/nsswitch.d/

Discussion 0
Question # 6

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
Question # 7

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Options:

A.  

sed '/bob/Bob' letter >newletter

B.  

sed s/bob/Bob/ letter < newletter

C.  

sed 's/bob/Bob' letter > newletter

D.  

sed 's/bob/Bob/g' letter > newletter

E.  

sed 's/bob, Bob/' letter > newletter

Discussion 0
Question # 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
Question # 9

Which of the following command sequences overwrites the file foobar.txt?

Options:

A.  

echo "QUIDQUIDAGIS" >> foobar.txt

B.  

echo "QUIDQUIDAGIS" < foobar.txt

C.  

echo "QUIDQUIDAGIS" > foobar.txt

D.  

echo "QUIDQUIDAGIS" | foobar.txt

Discussion 0
Question # 10

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
Question # 11

Which of the following commands lists all defined variables and functions within Bash?

Options:

A.  

env

B.  

set

C.  

env -a

D.  

echo $ENV

Discussion 0
Question # 12

What is true regarding TCP port 23?

Options:

A.  

Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.

B.  

Port 23 is the well known port for the SSH service which provides secure logins.

C.  

Port 23 is the well known port for the rlogin service which is SSL secured by default.

D.  

Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.

Discussion 0
Question # 13

What does the ? symbol within regular expressions represent?

Options:

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.

Discussion 0
Question # 14

What is the purpose of the command mailq?

Options:

A.  

It fetches new emails from a remote server using POP3 or IMAP.

B.  

It is a multi-user mailing list manager.

C.  

It is a proprietary tool contained only in the qmail MT

A.  

D.  

It queries the mail queue of the local MT

A.  

E.  

It is a command-line based tool for reading and writing emails.

Discussion 0
Question # 15

What output will the following command produce?

seq 1 5 20

Options:

A.  

1

6

1

1

1

6

B.  

1

5

10

15

C.  

1

2

3

4

D.  

2

3

4

5

E.  

5

10

15

20

Discussion 0
Question # 16

Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Options:

A.  

core

B.  

edquota

C.  

ulimit

D.  

quota

Discussion 0
Question # 17

The script, script.sh, consists of the following lines:

#!/bin/bash

echo $2 $1

Which output will appear if the command, ./script.sh test1 test2, is entered?

Options:

A.  

test1 test2

B.  

test2 test1

C.  

script.sh test2

D.  

script.sh test1

E.  

test1 script.sh

Discussion 0
Question # 18

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

Options:

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"

Discussion 0
Question # 19

The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Options:

A.  

It is placed in curly brackets as in Section SectionName { ... }.

B.  

It is placed between a line containing Section "SectionName" and a line containing EndSection.

C.  

It is placed between the tags

and

D.  

It is placed after the row [SectionName].

E.  

It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.

Discussion 0
Question # 20

Which of the following commands can be used to display the inode number of a given file?

Options:

A.  

inode

B.  

ls

C.  

ln

D.  

cp

Discussion 0
Question # 21

Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)

Options:

Discussion 0
Question # 22

Which of the following commands shows the definition of a given shell command?

Options:

A.  

where

B.  

stat

C.  

type

D.  

case

Discussion 0
Question # 23

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Options:

A.  

The command is SetUID and it will be executed with the effective rights of the owner.

B.  

The command will be executed with the effective rights of the group instead of the owner.

C.  

The execute flag is not set for the owner. Therefore the SetUID flag is ignored.

D.  

The command will be executed with the effective rights of the owner and group.

Discussion 0
Question # 24

When the command echo $ outputs 1, which of the following statements is true?

Options:

A.  

It is the process ID of the echo command.

B.  

It is the process ID of the current shell.

C.  

It is the exit value of the command executed immediately before echo.

D.  

It is the exit value of the echo command.

Discussion 0
Question # 25

Which signal is missing from the following command that is commonly used to instruct adaemon to reinitialize itself, including reading configuration files?

killall -s _______ daemon

Options:

Discussion 0
Question # 26

Which of the following commands lists all currently installedpackages when using RPM package management?

Options:

A.  

yum --query --all

B.  

yum --list --installed

C.  

rpm --query --all

D.  

rpm --list –installed

Discussion 0
Question # 27

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
Question # 28

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

Options:

Discussion 0
Question # 29

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the commandwithout any path or parameters.)

Options:

Discussion 0
Question # 30

What is the output of the following command sequence?

for token in a b c; do

echo -n "$token ";

done

Options:

A.  

anbncn

B.  

a b c

C.  

"a " "b " "c "

D.  

token token token

E.  

abc

Discussion 0
Question # 31

Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

Options:

Discussion 0
Question # 32

Whichof the following commands displays the contents of a gzip compressed tar archive?

Options:

A.  

gzip archive.tgz | tar xvf -

B.  

tar ztf archive.tgz

C.  

gzip -d archive.tgz | tar tvf -

D.  

tar cf archive.tgz

Discussion 0
Question # 33

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Options:

A.  

LD_LOAD_PATH

B.  

LD_LIB_PATH

C.  

LD_LIBRARY_PATH

D.  

LD_SHARE_PATH

E.  

LD_RUN_PATH

Discussion 0
Question # 34

What word is missing from the following SQL statement?

insert into tablename ________(909, 'text');

(Please specify the missing word using lower-case letters only.)

Options:

Discussion 0
Question # 35

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and withoutany trailing spaces, is reached?

Options:

A.  

<<

B.  

<|

C.  

!<

D.  

&<

Discussion 0
Question # 36

Which of the following is correct when talking about mountpoints?

Options:

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.

Discussion 0
Question # 37

Which file should be edited to select the network locations from which Debian installation package files are loaded?

Options:

A.  

/etc/dpkg/dpkg.cfg

B.  

/etc/apt/apt.conf

C.  

/etc/apt/apt.conf.d

D.  

/etc/apt/sources.list

E.  

/etc/dpkg/dselect.cfg

Discussion 0
Question # 38

Where are user specific crontabs stored?

Options:

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.

Discussion 0
Question # 39

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
Get LFCS dumps and pass your exam in 24 hours!

Free Exams Sample Questions