Certbus > Linux Foundation > Linux Foundation Certified SYSADMIN > LFCS > LFCS Online Practice Questions and Answers

LFCS Online Practice Questions and Answers

Questions 4

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

A. kill -HUP $(pidof grub)

B. grub-install

C. grub

D. No action is required

Browse 260 Q&As
Questions 5

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"

Browse 260 Q&As
Questions 6

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

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.

Browse 260 Q&As
Questions 7

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

A. currency symbol

B. language

C. timezone

D. thousands separator

Browse 260 Q&As
Questions 8

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

A. grouprm

B. groupmod

C. passwd

D. usergroups

E. usermod

Browse 260 Q&As
Questions 9

Which of the following commands moves and resumes in the background the last stopped shell job?

A. run

B. bg

C. fg

D. back

Browse 260 Q&As
Questions 10

Given the following routing table:

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

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.

Browse 260 Q&As
Questions 11

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

A. I

Browse 260 Q&As
Questions 12

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

A. route del default

B. ifconfig unset default

C. netstat -r default

D. ip route del default

E. sysctl ipv4.default_gw=0

Browse 260 Q&As
Questions 13

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

A. mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, sendmail, /usr/sbin/sendmail, /usr/lib/sendmail

Browse 260 Q&As
Questions 14

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

A. find /usr -uid 0 -perm +4000

B. find -user root +mode +s /usr

C. find -type suid -username root -d /usr

D. find /usr -ls \*s\* -u root

E. find /usr -suid -perm +4000

Browse 260 Q&As
Questions 15

What is the purpose of the nsswitch.conf file?

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.

Browse 260 Q&As
Questions 16

Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)

A. /usr/bin/xwininfo, xwininfo

Browse 260 Q&As
Questions 17

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

A. echo "QUIDQUIDAGIS" >> foobar.txt

B. echo "QUIDQUIDAGIS" < foobar.txt

C. echo "QUIDQUIDAGIS" > foobar.txt

D. echo "QUIDQUIDAGIS" | foobar.txt

Browse 260 Q&As
Questions 18

On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?

A. The local routing information may be corrupted and must be re-validated using a routing protocol.

B. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout.

C. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default.

D. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.

Browse 260 Q&As
Exam Code: LFCS
Exam Name: Linux Foundation Certified System Administrator
Last Update: Apr 14, 2024
Questions: 260 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99