Pass Linux Foundation LFCS exam questions - convert Test Engine to PDF [Q36-Q61]

Share

Pass Linux Foundation LFCS exam questions - convert Test Engine to PDF

Pass Your LFCS Exam Easily - Real LFCS Practice Dump Updated Feb 10, 2022


For more info visit:

LFCS Exam Reference


LFCS Certification Path

There are no prerequisites for the LFCS

 

NEW QUESTION 36
How can the current directory and its subdirectories be searched for the file named MyFile.xml?

  • A. search Myfile.xml ./
  • B. less MyFile.xml
  • C. grep -r MyFile.xml .
  • D. find . -name MyFile.xml
  • E. grep MyFile.xml | find

Answer: D

 

NEW QUESTION 37
CORRECT TEXT
Which command will display messages from the kernel that were output during the normal
boot sequence?

Answer:

Explanation:
dmesg, /bin/dmesg

 

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

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

Answer: E

 

NEW QUESTION 39
Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

  • A. File size
  • B. Link count
  • C. Modify timestamp
  • D. Permissions
  • E. Inode number

Answer: B

 

NEW QUESTION 40
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. test1 test2
  • C. test2 test1
  • D. script.sh test2
  • E. script.sh test1

Answer: C

 

NEW QUESTION 41
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and withoutany trailing spaces, is reached?

  • A. !<
  • B. <|
  • C. <<
  • D. &<

Answer: C

 

NEW QUESTION 42
Which of the following steps prevents a user from obtaining an interactive login session?

  • A. Remove the user from the group staff.
  • B. Set the UID for the user to 0.
  • C. Create a .nologin file in the user's home directory.
  • D. Add the user to /etc/noaccess.
  • E. Run the command chsh -s /bin/false with the user name.

Answer: E

 

NEW QUESTION 43
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 44
Which command can be used to delete a group from a Linux system?

  • A. groupdel
  • B. groupmod
  • C. groups
  • D. groupedit

Answer: A

 

NEW QUESTION 45
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

  • A. The name of the group.
  • B. The password of the group.
  • C. The home directory of the group.
  • D. The list of users that belong to the group.
  • E. The description of the group.

Answer: A,B,D

 

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

  • A. exec
  • B. cont
  • C. :&
  • D. bg
  • E. &

Answer: D

 

NEW QUESTION 47
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

  • A. To create snapshots.
  • B. To encrypt logical volumes.
  • C. To create RAID 9 arrays.
  • D. To dynamically create or delete logical volumes.
  • E. To dynamically change the size of logical volumes.

Answer: A,D,E

 

NEW QUESTION 48
What is true regarding a default route?

  • A. When a default route is set, all other routes are disabled until the default route is deleted.
  • B. The default route is always used first. When the default route is not available more specific routes are tried.
  • C. Without a default route, no network communication even in directly attached networks is possible.
  • D. The default route is only used if there is not a more specific route to a destination host or network.

Answer: D

 

NEW QUESTION 49
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 exit value of the echo command.
  • C. It is the process ID of the current shell.
  • D. It is the exit value of the command executed immediately before echo.

Answer: D

 

NEW QUESTION 50
What is true regarding the command sendmail?

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

Answer: B

 

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

  • A. --upto
  • B. --until
  • C. --since
  • D. --date
  • E. --from

Answer: B,C

 

NEW QUESTION 52
What is the correct command to extract the contents of the archive file download.bz2?

  • A. unzip download.bz2
  • B. unpack download.bz2
  • C. bunzip2 download.bz2
  • D. uncompress download.bz2
  • E. unzip2 download.bz2

Answer: C

 

NEW QUESTION 53
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

  • A. The file system on which the script resides must be mounted with the option scripts.
  • B. The script must begin with a shebang-line (#!) that points to the correct interpreter.
  • C. The user issuing the command must be in the group script.
  • D. The script file must have the executable permission bit set.
  • E. The script file must be found in the $PATH.

Answer: B,D,E

 

NEW QUESTION 54
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. run /usr/local/bin/runme.sh
  • C. /bin/bash /usr/local/bin/runme.sh
  • D. /usr/local/bin/runme.sh
  • E. . /usr/local/bin/runme.sh

Answer: A,E

 

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

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

Answer: D

 

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

  • A. tar -xf backup.tar /home
  • B. tar -cf /home backup.tar
  • C. tar /home backup.tar
  • D. tar -xf /home backup.tar
  • E. tar -cf backup.tar /home

Answer: E

 

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

  • A. telinit 1
  • B. shutdown -R 1 now
  • C. shutdown -single now
  • D. init 1
  • E. runlevel 1

Answer: A,D

 

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

  • A. Use the tar command with -t.
  • B. Use the zlist command.
  • C. Use the find command.
  • D. Use the grep command.
  • E. Use the zless command.

Answer: A

 

NEW QUESTION 59
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 enables color to highlight matching parts.
  • D. It changes theoutput order showing the last matching line first.

Answer: A

 

NEW QUESTION 60
What is a purpose of an SSH host key?

  • A. It authenticates any user that logs into a remote machine from the key's host.
  • B. It is the root key by which all user SSH keys must be signed.
  • C. It provides the server's identity information to connecting SSH clients.
  • D. It is used by system services like cron, syslog or a backup job to automatically connect to remote hosts.
  • E. It must be sent by any SSH client in addition to a user key in order to identify the client's host.

Answer: C

 

NEW QUESTION 61
......


Topics of LFCS Exam

Candidates must know the exam topics before they start of preparation. Because, it will really help them in hitting the core. Our LFCS dumps will include the following topics:

  • Essential Commands
  • Storage Management
  • Networking

 

LFCS Real Exam Questions and Answers FREE: https://examcollection.dumpsvalid.com/LFCS-brain-dumps.html