Your success in Linux Foundation LFCS is our sole target and we develop all our LFCS braindumps in a way that facilitates the attainment of this target. Not only is our LFCS study material the best you can find, it is also the most detailed and the most updated. LFCS Practice Exams for Linux Foundation LFCS are written to the highest standards of technical accuracy.
Q1. Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
A. sshd
B. ssh-agent
C. ssh-keygen
D. ssh-add
Answer: B
Q2. When given the following command line. echo "foo bar" | tee bar | cat
Which of the following output is created?
A. cat
B. foo bar
C. tee bar
D. bar
E. foo
Answer: B
Q3. What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)
A. route del default
B. ifconfig unset default
C. netstat -r default
D. ip route del default
E. sysctl ipv4.default_gw=0
Answer: A,D
Q4. 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 user issuing the command must be in the group script.
B. The script file must be found in the $PATH.
C. The script file must have the executable permission bit set.
D. The script must begin with a shebang-line (#!) that points to the correct interpreter.
E. The file system on which the script resides must be mounted with the option scripts.
Answer: B,C,D
Q5. Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
A. ssh --port 2222 example.com
B. ssh -p 2222 example.com
C. ssh -o Port=2222 example.com
D. ssh -o GatewayPort=2222 example.com
E. ssh example.com:2222
Answer: B,C
Q6. 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: A,C
Q7. Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A. 0
B. 1
C. 3
D. 5
E. 6
Answer: A,E
Q8. CORRECT TEXT
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: up
Q9. Which of the following settingsfor umask ensures that new files have the default permissions -rw-r----- ?
A. 0017
B. 0640
C. 0038
D. 0027
Answer: D
Q10. How can the existing environment variable FOOBAR be suppressedfor the execution of the script./myscript only?
A. unset -v FOOBAR;./myscript
B. set -a FOOBAR="";./myscript
C. env -u FOOBAR./myscript
D. env -i FOOBAR./myscript
Answer: C
Q11. Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
A. sed '/bob/Bob' letter >newletter
B. sed s/bob/Bob/ letter < newletter
C. sed 's/bob/Bob' letter > newletter
D. sed 's/bob/Bob/g' letter > newletter
E. sed 's/bob, Bob/' letter > newletter
Answer: D
Q12. 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. dnsq
B. dig
C. hostname
D. dnslookup
E. zoneinfo
Answer: B
Q13. Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
A. ext2
B. ext3
C. ext4
D. XFS
E. VFAT
Answer: A
Q14. Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
A. tcpd
B. inetd
C. fingerd
D. mountd
E. xinetd
Answer: A
Q15. Which of the following files assigns a user to its primary group?
A. /etc/pgroup
B. /etc/shadow
C. /etc/group
D. /etc/passwd
E. /etc/gshadow
Answer: D