Linux Foundation LFCS LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR Exam Practice Test

Page: 1 / 14
Total 260 questions
Question 1

What is the output of the following command?

for token in a b c; do

echo -n ${token};

done



Answer : B


Question 2

What is the output of the following command sequence?

for token in a b c; do

echo -n "$token ";

done



Answer : B


Question 3

Which character starts a comment line in a shell script file?



Answer : C


Question 4

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



Answer : A


Question 5

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?



Answer : B


Question 6

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

See Below Explanation:




Answer : A


Question 7

Which of the following statements is valid in the file /etc/nsswitch.conf?



Answer : C


Page:    1 / 14   
Total 260 questions