New Year Special Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Linux Foundation > Linux Foundation Certified SYSADMIN > LFCS

LFCS Linux Foundation Certified System Administrator Question and Answers

Question # 4

After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)

Full Access
Question # 5

Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?(Choose two)

A.

grep -v fred data_file

B.

grep '[f]red' data_file

C.

egrep fred data_file

D.

grep '[Ff]red' data_file

E.

grep -i fred data_file

Full Access
Question # 6

Which approach will provide a listing of the contents in a tar archive?

A.

Use the tar command with -t.

B.

Use the grep command.

C.

Use the find command.

D.

Use the zless command.

E.

Use the zlist command.

Full Access
Question # 7

Which of the following statements is correct when talking about /proc/?

A.

All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

B.

All files within /proc/ are read-only and their contents cannot be changed.

C.

All changes to files in /proc/ are immediately recognized by the kernel.

D.

All files within/proc/ are only readable by the root user.

Full Access
Question # 8

What is the lowest numbered unprivileged TCP port? (Specify the number in digits only.)

Full Access
Question # 9

After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 10

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.

Full Access
Question # 11

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

Full Access
Question # 12

What is true about the file /etc/localtime?

A.

It is a plain text file containing a string such as Europe/Berlin.

B.

It is created and maintained by the NTP service based on the geolocation of the system's IP address.

C.

It is a symlink to /sys/device/clock/ltime and always contains the current local time.

D.

It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.

Full Access
Question # 13

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.

Full Access
Question # 14

Which shell command is used to continue background execution of a suspended command?

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

Full Access
Question # 15

What command displays all aliases defined in the current shell? (Specify the command without any path information)

Full Access
Question # 16

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.

Full Access
Question # 17

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

A.

lpd

B.

lpp

C.

lpq

D.

lpr

Full Access
Question # 18

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

A.

Year

B.

Minute

C.

Username

D.

Command

Full Access
Question # 19

Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

A.

export LANGUAGE="pt"

B.

export MESSAGE="pt"

C.

export UI_MESSAGES="pt"

D.

export LC_MESSAGES="pt"

E.

export ALL_MESSAGES="pt"

Full Access
Question # 20

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

A.

yum --query --all

B.

yum --list --installed

C.

rpm --query --all

D.

rpm --list –installed

Full Access
Question # 21

Which file inside the CUPS configuration directory contains the definition of the printers?

A.

cups-devices.conf

B.

snmp.conf

C.

printcap.conf

D.

printers.conf

E.

cupsd.conf

Full Access
Question # 22

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Full Access
Question # 23

What output will the following command sequence produce?

echo '1 2 3 4 5 6' | while read a b c; do

echo result: $c $b $a;

done

A.

result: 3 4 5 6 2 1

B.

result: 1 2 3 4 5 6

C.

result: 6 5 4

D.

result: 6 5 4 3 2 1

E.

result: 3 2 1

Full Access
Question # 24

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

A.

Start and prepare the desktop environment for the user.

B.

Configure additional devices like new monitors or projectors when they are attached.

C.

Handle the login of a user.

D.

Lock the screen when the user was inactive for a configurable amount of time.

E.

Create an X11 configuration file for the current graphic devices and monitors.

Full Access
Question # 25

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

A.

sshd

B.

ssh-agent

C.

ssh-keygen

D.

ssh-add

Full Access
Question # 26

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

A.

grouprm

B.

groupmod

C.

passwd

D.

usergroups

E.

usermod

Full Access
Question # 27

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

Full Access
Question # 28

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

Full Access
Question # 29

What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)

Full Access
Question # 30

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?

A.

apropos

B.

which

C.

find

D.

query

E.

whereis

Full Access
Question # 31

Which of the following files, located in the user home directory, is used to store the Bash history?

A.

.bash_history

B.

.bash_histfile

C.

.history

D.

.bashrc_history

E.

.history_bash

Full Access
Question # 32

What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

Full Access
Question # 33

In compliance with the FHS, in which of the directories are man pages found?

A.

/usr/share/man

B.

/opt/man

C.

/usr/doc/

D.

/var/pkg/man

E.

/var/man

Full Access
Question # 34

Given a file called birthdays containing lines like:

YYYY-MM-DD Name

1983-06-02 Tim

1995-12-17 Sue

Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?

A.

grep '[56]' birthdays

B.

grep 05?6? birthdays

C.

grep '[0-9]*-0[56]-' birthdays

D.

grep 06 birthdays | grep 05

Full Access
Question # 35

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.

Full Access
Question # 36

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

Full Access
Question # 37

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Full Access
Question # 38

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

A.

Entries for all possible devices get created on boot even if those devicesare not connected.

B.

Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

C.

When using udev, it is not possible to create block or character devices in /dev/ using mknod.

D.

The /dev/ directory is a filesystem of type tmpfs andis mounted by udev during system startup.

E.

The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Full Access
Question # 39

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

A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Full Access