11.11 Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

LFCS Linux Foundation Certified System Administrator Questions and Answers

Questions 4

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

Options:

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.

Buy Now
Questions 5

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

Buy Now
Questions 6

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Options:

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.

Buy Now
Questions 7

In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

Options:

Buy Now
Questions 8

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:

Buy Now
Questions 9

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

Options:

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

Buy Now
Questions 10

Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Options:

A.

2001:db8::15 www.example.com www

B.

www.example.com www 203.0.13.15

C.

203.0.113.15 www.example.com www

D.

www.example.com,www 203.0.13.15,2001:db8::15

E.

2003.0.113.15,2001:db8::15 www.example.com www

Buy Now
Questions 11

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

Buy Now
Questions 12

Which variable defines the directories in which a Bash shell searches for executable commands?

Options:

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

Buy Now
Questions 13

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

Options:

Buy Now
Questions 14

Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Options:

A.

--from=

B.

--since=

C.

--until=

D.

--upto=

E.

--date=

Buy Now
Questions 15

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

Buy Now
Questions 16

Which file used by XDM specifies the default wallpaper?

Options:

A.

/etc/X11/xdm/Xsetup

B.

/etc/X11/xdm.conf

C.

/etc/X11/xdm/Defaults

D.

/etc/X11/defaults.conf

Buy Now
Questions 17

Which of the following commands prints a listof usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Options:

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

Buy Now
Questions 18

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

Options:

Buy Now
Questions 19

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?

Options:

A.

grep '[56]' birthdays

B.

grep 05?6? birthdays

C.

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

D.

grep 06 birthdays | grep 05

Buy Now
Questions 20

Which of the following commands will help identify a broken router between the local and the remote machine?

Options:

A.

ps

B.

netstat

C.

nslookup

D.

ifconfig

E.

traceroute

Buy Now
Questions 21

What is NOT contained in the locale setting of the operating system?

Options:

A.

currency symbol

B.

language

C.

timezone

D.

thousands separator

Buy Now
Questions 22

What word is missing from the following SQL statement?

__________ count(*) from tablename;

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

Options:

Buy Now
Questions 23

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

Buy Now
Questions 24

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Options:

A.

CASE

B.

FROM

C.

WHERE

D.

IF

Buy Now
Questions 25

Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

Options:

A.

Synchronize the hardware and system clocks.

B.

Output date and time in different formats.

C.

Set the system clock.

D.

Set the hardware clock.

E.

Update the time via NTP.

Buy Now
Questions 26

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

Options:

Buy Now
Questions 27

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.

Buy Now
Questions 28

What is true regarding the command sendmail?

Options:

A.

With any MTA, the sendmail command must be run periodically by the cron daemon.

B.

All MTAs, including Postfix and Exim, provide a sendmail command.

C.

The sendmail command prints the MTAs queue history of which mails have been sent successfully.

D.

It is only available when the sendmail MTA is installed.

Buy Now
Questions 29

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

Buy Now
Questions 30

Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 31

For accessibility assistance, which of the following programs is an on-screen keyboard?

Options:

A.

xkb

B.

atkb

C.

GOK

D.

xOSK

Buy Now
Questions 32

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Options:

A.

route del default

B.

ifconfig unset default

C.

netstat -r default

D.

ip route del default

E.

sysctl ipv4.default_gw=0

Buy Now
Questions 33

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

Options:

A.

;

B.

*

C.

#

D.

/

Buy Now
Questions 34

What command will generate a list of user names from /etc/passwd along with their login shell?

Options:

A.

column -s : 1,7 /etc/passwd

B.

chop -c 1,7 /etc/passwd

C.

colrm 1,7 /etc/passwd

D.

cut -d: -f1,7 /etc/passwd

Buy Now
Questions 35

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Options:

A.

rmdir '~/\dir'

B.

rmdir "~/\dir"

C.

rmdir ~/'dir'

D.

rmdir ~/\dir

E.

rmdir ~/\\dir

Buy Now
Questions 36

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)

Buy Now
Questions 37

Whenremoving a package, which of the following dpkg options will completely remove the files including configuration files?

Options:

A.

--clean

B.

--delete

C.

--purge

D.

–remove

Buy Now
Questions 38

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

Options:

Buy Now
Questions 39

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.

Buy Now
Exam Code: LFCS
Exam Name: Linux Foundation Certified System Administrator
Last Update: Nov 16, 2024
Questions: 260

PDF + Testing Engine

$130

Testing Engine

$95

PDF (Q&A)

$80