[Aug-2021] Valid Way To Pass Linux Foundation Exam Dumps with LFCS Exam Study Guide [Q156-Q178]

Share

[Aug-2021] Valid Way To Pass Linux Foundation Exam Dumps with LFCS Exam Study Guide

All LFCS Dumps and Linux Foundation Certified System Administrator Training Courses Help candidates to study and pass the Exams hassle-free!

NEW QUESTION 156
Which file contains the date of the last change of a user's password?

  • A. /etc/passwd
  • B. /etc/gshadow
  • C. /etc/pwdlog
  • D. /var/log/shadow
  • E. /etc/shadow

Answer: E

 

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

Answer:

Explanation:
/etc/sudoers

 

NEW QUESTION 158
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 a hard link from the old to the new path of the data.
  • B. By creating a symbolic link from the old to the new path of the data.
  • C. By creating an ACL redirection from the old to the new path of the data.
  • D. By mounting the new filesystem on the original path of the data.
  • E. By running the command touch on the old path.

Answer: B,D

 

NEW QUESTION 159
The output of the program date should be saved in the variable actdat. What is the correct statement?

  • A. set actdat='date'
  • B. actdat=date
  • C. date > $actdat
  • D. actdat=`date`
  • E. date | actdat

Answer: D

 

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

  • A. www.example.com,www 203.0.13.15,2001:db8::15
  • B. www.example.com www 203.0.13.15
  • C. 2001:db8::15 www.example.com www
  • D. 203.0.113.15 www.example.com www
  • E. 2003.0.113.15,2001:db8::15 www.example.com www

Answer: C,D

 

NEW QUESTION 161
CORRECT TEXT
How many IP-addresses can be used for unique hosts inside the IPv4 subnet
192.168.2.128/28? (Specify the number only without any additional information.)

Answer:

Explanation:
14

 

NEW QUESTION 162
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 MESSAGE="pt"
  • B. export ALL_MESSAGES="pt"
  • C. export UI_MESSAGES="pt"
  • D. export LC_MESSAGES="pt"
  • E. export LANGUAGE="pt"

Answer: D

 

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

Answer:

Explanation:
l

 

NEW QUESTION 164
Which of the following commands will write a message to the terminals of all logged in users?

  • A. wall
  • B. bcast
  • C. print
  • D. mesg
  • E. yell

Answer: A

 

NEW QUESTION 165
What is the maximum niceness value that a regular user can assign to a process with the nice command when executinga new process?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

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

  • A. env
  • B. echo $ENV
  • C. env -a
  • D. set

Answer: D

 

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

  • A. printers.conf
  • B. printcap.conf
  • C. cupsd.conf
  • D. snmp.conf
  • E. cups-devices.conf

Answer: A

 

NEW QUESTION 168
SIMULATION
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)

Answer:

Explanation:
/etc/hosts.allow

 

NEW QUESTION 169
Which of the following shell redirections will write standard output and standard error output to a file named filename?

  • A. >filename 2>&1
  • B. >>filename
  • C. 1>&2>filename
  • D. 1&2>filename
  • E. 2>&1 >filename

Answer: A

 

NEW QUESTION 170
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?

  • A. test1 script.sh
  • B. script.sh test2
  • C. script.sh test1
  • D. test1 test2
  • E. test2 test1

Answer: E

 

NEW QUESTION 171
Which command will display the last line of the file foo.txt?

  • A. last -n 1 foo.txt
  • B. tail foo.txt
  • C. head -n 1 foo.txt
  • D. tail -n 1 foo.txt

Answer: D

Explanation:
Explanation/Reference:

 

NEW QUESTION 172
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: B

 

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

  • A. /usr/doc/
  • B. /var/man
  • C. /var/pkg/man
  • D. /usr/share/man
  • E. /opt/man

Answer: D

 

NEW QUESTION 174
CORRECT TEXT
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)

Answer:

Explanation:
select

 

NEW QUESTION 175
What is the effect of the egrep command when the -v option is used?

  • A. It only outputs non-matching lines.
  • B. It shows the command's version information.
  • C. It changes theoutput order showing the last matching line first.
  • D. It enables color to highlight matching parts.

Answer: A

 

NEW QUESTION 176
CORRECT TEXT
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)

Answer:

Explanation:
server

 

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

Answer:

Explanation:
netstat, /bin/netstat, ss, /usr/bin/ss

 

NEW QUESTION 178
......

Real Exam Questions & Answers - Linux Foundation LFCS Dump is Ready: https://drive.google.com/open?id=1rd76iHf-ZirtV4_BBMGQnCFWtFyDRjpr

Get Latest [Aug-2021] Conduct effective penetration tests using  PracticeTorrent LFCS