Linux Foundation LFCS Dumps Updated [Jan-2022] Get 100% Real Exam Questions! [Q37-Q62]

Share

[Jan-2022] Pass Linux Foundation LFCS Exam in First Attempt Guaranteed!

Full LFCS Practice Test and 260 unique questions with explanations waiting just for you, get it now!

NEW QUESTION 37
What is the difference between the i and a commands of the vi editor?

  • A. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
  • B. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
  • C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
  • D. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

Answer: A

 

NEW QUESTION 38
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

  • A. The execute flag is not set for the owner. Therefore the SetUID flag is ignored.
  • B. The command will be executed with the effective rights of the owner and group.
  • C. The command is SetUID and it will be executed with the effective rights of the owner.
  • D. The command will be executed with the effective rights of the group instead of the owner.

Answer: A

 

NEW QUESTION 39
Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

  • A. method
  • B. search
  • C. nameserver
  • D. lookup
  • E. substitute

Answer: B,C

 

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

  • A. ifconfig
  • B. nslookup
  • C. traceroute
  • D. ps
  • E. netstat

Answer: D

Explanation:
Explanation/Reference:

 

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

Answer: A,C,D

 

NEW QUESTION 42
CORRECT TEXT
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the commandwithout any path or parameters.)

Answer:

Explanation:
quotacheck

 

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

  • A. 1 5 10 15
  • B. 1 6 1 1 1 6
  • C. 2 3 4 5
  • D. 1 2 3 4
  • E. 5 10 15 20

Answer: B

 

NEW QUESTION 44
What is true regarding TCP port 23?

  • A. Port 23 is the well known port for the rlogin service which is SSL secured by default.
  • B. Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.
  • C. Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.
  • D. Port 23 is the well known port for the SSH service which provides secure logins.

Answer: C

 

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

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

Answer: B

 

NEW QUESTION 46
SIMULATION
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 47
How many fields are in a syntactically correct line of /etc/fstab?

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

Answer: D

 

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

Answer:

Explanation:
/tmp, tmp, /var/tmp, /tmp/, /var/tmp/

 

NEW QUESTION 49
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 after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
  • D. It is placed between the tags <Section name="SectionName"> and </Section>
  • E. It is placed after the row [SectionName].

Answer: B

 

NEW QUESTION 50
SIMULATION
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Answer:

Explanation:
0077, 077

 

NEW QUESTION 51
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

  • A. chown dan/staff file.txt
  • B. chown dan -g staff file.txt
  • C. chown -u dan -g staff file.txt
  • D. chown dan:staff file.txt

Answer: D

 

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

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

Answer: B,E

 

NEW QUESTION 53
Which of the following commands can be used to download the RPM package kernel without installing it?

  • A. yumdownloader kernel
  • B. rpmdownload kernel
  • C. rpm --download --package kernel
  • D. yum download --no-install kernel

Answer: A

 

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

Answer: E

 

NEW QUESTION 55
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

  • A. tune2fs -i 200 /dev/sda1
  • B. tune2fs --days 200 /dev/sda1
  • C. tune2fs -n 200/dev/sda1
  • D. tune2fs -d 200 /dev/sda1
  • E. tune2fs -c 200 /dev/sda1

Answer: A

 

NEW QUESTION 56
When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

  • A. debug
  • B. traceroute
  • C. strace
  • D. lsof
  • E. nessus

Answer: D

 

NEW QUESTION 57
SIMULATION
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)

Answer:

Explanation:
up

 

NEW QUESTION 58
Which of the following files, located in the user home directory, is used to store the Bash history?

  • A. .bashrc_history
  • B. .history_bash
  • C. .bash_histfile
  • D. .history
  • E. .bash_history

Answer: E

 

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

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

Answer: E

 

NEW QUESTION 60
Which command can be used to delete a group from a Linux system?

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

Answer: D

 

NEW QUESTION 61
SUMULATION
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Answer:

Explanation:
cmdline -or- /proc/cmdline

 

NEW QUESTION 62
......

Prepare for your Linux Foundation certification with the updated NewPassLeader LFCS exam questions: https://drive.google.com/open?id=1wOr0Y79rFODEsNCBsgYnPPqNc2SkHmzY

Get Latest LFCS Dumps Exam Questions in here: https://www.newpassleader.com/Linux-Foundation/LFCS-exam-preparation-materials.html