Linux-Foundation LFCS Vce 2021

Act now and download your Linux-Foundation LFCS test today! Do not waste time for the worthless Linux-Foundation LFCS tutorials. Download Latest Linux-Foundation Linux Foundation Certified System Administrator exam with real questions and answers and begin to learn Linux-Foundation LFCS with a classic professional.

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

  • A. mydate="$(date)"
  • B. mydate="exec date"
  • C. mydate="$((date))"
  • D. mydate="date"
  • E. mydate="${date}"

Answer: A

NEW QUESTION 2
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

  • A. *
  • B. -
  • C. s
  • D. x

Answer: D

NEW QUESTION 3
CORRECT TEXT
Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

  • A.

Answer: /tmptmp/var/tmp/tmp//var/tmp/

NEW QUESTION 4
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

  • A. *.* /dev/tty12
  • B. /var/log/messages | /dev/tty12
  • C. | /dev/tty12
  • D. syslog tty12
  • E. mail.* /dev/tty12

Answer: A

NEW QUESTION 5
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.

Answer: D

NEW QUESTION 6
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.

Answer: A

NEW QUESTION 7
What is the output of the following command?
for token in a b c; do echo -n ${token}; done

  • A. anbncn
  • B. abc
  • C. $token$token$token
  • D. {a}{b}{c}
  • E. a b c

Answer: B

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

  • A. broadcast services
  • B. interface statistics
  • C. masquerading connections
  • D. network connections
  • E. routing tables

Answer: A

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

  • 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 <Section name="SectionName"> and </Section>
  • 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.

Answer: B

NEW QUESTION 10
CORRECT TEXT
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

  • A.

Answer: HUPSIGHUP1

NEW QUESTION 11
Given the following routing table:
LFCS dumps exhibit
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.

Answer: E

NEW QUESTION 12
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.)

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

Answer: CE

NEW QUESTION 13
Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

  • A. FIND
  • B. ID
  • C. LABEL
  • D. NAME
  • E. UUID

Answer: CE

NEW QUESTION 14
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

Answer: A

NEW QUESTION 15
CORRECT TEXT
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.)

  • A.

Answer: newaliasessendmail-bi

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

  • 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

Answer: E

NEW QUESTION 17
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

  • A. source /usr/local/bin/runme.sh
  • B. /usr/local/bin/runme.sh
  • C. /bin/bash /usr/local/bin/runme.sh
  • D. /usr/local/bin/runme.sh
  • E. run /usr/local/bin/runme.sh

Answer: AB

NEW QUESTION 18
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

  • A. shutdown -r now
  • B. shutdown -r "rebooting"
  • C. telinit 6
  • D. telinit 0
  • E. shutdown -k now "rebooting"

Answer: AC

NEW QUESTION 19
Which character starts a comment line in a shell script file?

  • A. ;
  • B. *
  • C. #
  • D. /

Answer: C

NEW QUESTION 20
What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

  • A. Set a network interface active or inactive.
  • B. Specify the kernel module to be used with a network interface.
  • C. Allow regular users to change the network configuration of a network interface.
  • D. Change the netmask used on a network interface.
  • E. Specify which network services are available on a network interface.

Answer: AD

NEW QUESTION 21
CORRECT TEXT
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

  • A.

Answer: groupadd/usr/sbin/groupadd

NEW QUESTION 22
What output will the following command produce? seq 1 5 20

  • A. 161116
  • B. 151015
  • C. 1234
  • D. 2345
  • E. 5101520

Answer: A

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

  • A. gzip archive.tgz | tar xvf -
  • B. tar ztf archive.tgz
  • C. gzip -d archive.tgz | tar tvf -
  • D. tar cf archive.tgz

Answer: B

NEW QUESTION 24
CORRECT TEXT
What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)

  • A.

Answer: xdm

NEW QUESTION 25
Which of the following commands is used to rotate, compress, and mail system logs?

  • A. rotatelog
  • B. striplog
  • C. syslogd --rotate
  • D. logrotate
  • E. logger

Answer: D

NEW QUESTION 26
CORRECT TEXT
The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)

  • A.

Answer: /usr/share/zoneinfo/

NEW QUESTION 27
CORRECT TEXT
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

  • A.

Answer: mkdir/usr/bin/mkdir

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

  • 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

Answer: A

NEW QUESTION 29
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

  • A. /lib/init.so
  • B. /sbin/init
  • C. /etc/rc.d/rcinit
  • D. /proc/sys/kernel/init
  • E. /boot/init

Answer: B

NEW QUESTION 30
......

P.S. prep-labs.com now are offering 100% pass ensure LFCS dumps! All LFCS exam questions have been updated with correct answers: https://www.prep-labs.com/dumps/LFCS/ (260 New Questions)