Linux Foundation LFCS LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR Exam Practice Test

Page: 1 / 14
Total 260 questions
Question 1

How can the normal output of a command be written to a file while discarding the error output?



Answer : E


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 of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)



Answer : A, C


Question 7

What is true regarding a default route?



Answer : C


Page:    1 / 14   
Total 260 questions