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

Share

[Sep-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 36
What is true regarding the file ~/.forward?

  • A. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.
  • B. As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command.
  • C. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.
  • D. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.

Answer: C

 

NEW QUESTION 37
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

  • A. B C
  • B. C B A
  • C. A C
  • D. A B C
  • E. A B

Answer: E

 

NEW QUESTION 38
Which of the following is true about IPv6?

  • A. With IPv6, the TCP port numbers of most services have changed.
  • B. For IPv6, UDP and TCP have been replaced by the Rapid Transmission Protocol RTP.
  • C. IPv6 no longer supports multicast addresses.
  • D. IPv6 no longer supports broadcast addresses.
  • E. IPv4 addresses can be used without any change with IPv6.

Answer: D

 

NEW QUESTION 39
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

  • A. rmdir ~/'dir'
  • B. rmdir ~/\dir
  • C. rmdir '~/\dir'
  • D. rmdir ~/\\dir
  • E. rmdir "~/\dir"

Answer: D

 

NEW QUESTION 40
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 41
Which of the following commands shows the current color depth of the X Server?

  • A. cat /etc/X11
  • B. xwininfo
  • C. xcd
  • D. xcolordepth
  • E. xcdepth

Answer: B

 

NEW QUESTION 42
CORRECT TEXT
Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Answer:

Explanation:
443

 

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

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

Answer: B,C,E

Explanation:
Explanation/Reference:

 

NEW QUESTION 44
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

  • A. tee myapp file1.log
  • B. myapp | cat > file1.log
  • C. myapp | teefile1.log
  • D. myapp 0>&1 | cat > file1.log
  • E. cat < myapp | cat > file1.log

Answer: C

 

NEW QUESTION 45
What is the purpose of the command mailq?

  • A. It is a command-line based tool for reading and writing emails.
  • B. It is a multi-user mailing list manager.
  • C. It is a proprietary tool contained only in the qmail MTA.
  • D. It queries the mail queue of the local MTA.
  • E. It fetches new emails from a remote server using POP3 or IMAP.

Answer: D

Explanation:
Explanation/Reference:

 

NEW QUESTION 46
Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

  • A. hostname
  • B. dnsq
  • C. zoneinfo
  • D. dnslookup
  • E. dig

Answer: E

 

NEW QUESTION 47
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 /usr -ls \*s\* -u root
  • D. find -type suid -username root -d /usr
  • E. find /usr -suid -perm +4000

Answer: A

 

NEW QUESTION 48
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. .bashrc_history
  • D. .history_bash
  • E. .history

Answer: A

Explanation:
Explanation

 

NEW QUESTION 49
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

  • A. SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;
  • B. SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;
  • C. COUNT(SELECT order_type FROM orders);
  • D. SELECT AUTO_COUNT FROM orders COUNT order_type;
  • E. SELECT COUNT(*) FROM orders ORDER BY order_type;

Answer: B

 

NEW QUESTION 50
Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

  • A. <
  • B. <<<
  • C. >
  • D. >>>
  • E. %>

Answer: A,B,C

 

NEW QUESTION 51
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two)

  • A. egrep fred data_file
  • B. grep -i fred data_file
  • C. grep '[f]red' data_file
  • D. grep '[Ff]red' data_file
  • E. grep -v fred data_file

Answer: B,D

 

NEW QUESTION 52
What is the purpose of the file /etc/profile?

  • A. It contains security profiles defining which users are allowed to log in.
  • B. It contains environment variables that are set when a user logs in.
  • C. It contains the welcome message that is displayed after login.
  • D. It contains default application profiles for users that run an application for the first time.

Answer: B

 

NEW QUESTION 53
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 54
Where are user specific crontabs stored?

  • A. In the database file /etc/crontab.db which is shared by all users.
  • B. In the .crontab file in the user's home directory.
  • C. In the file /var/cron/user-crontab which is shared by all users.
  • D. As individual per-user files within /var/spool/cron.
  • E. As individual per-user files in /etc/cron.user.d.

Answer: D

 

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

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

Answer: C

Explanation:
Explanation/Reference:

 

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

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

Answer: C

 

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

  • A. It is the exit value of the command executed immediately before echo.
  • B. It is the process ID of the echo command.
  • C. It is the exit value of the echo command.
  • D. It is the process ID of the current shell.

Answer: A

 

NEW QUESTION 58
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. NAME
  • B. LABEL
  • C. ID
  • D. UUID
  • E. FIND

Answer: B,D

 

NEW QUESTION 59
What is the output of the following command sequence? for token in a b c; do
echo -n "$token ";
done

  • A. a b c
  • B. anbncn
  • C. token token token
  • D. abc
  • E. "a " "b " "c "

Answer: A

 

NEW QUESTION 60
......

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

Get Latest [Sep-2021] Conduct effective penetration tests using  ITExamSimulator LFCS