What is the output of the following command?
for token in a b c; do
echo -n ${token};
done
Answer : B
What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done
Answer : B
Which character starts a comment line in a shell script file?
Answer : C
Which approach will provide a listing of the contents in a tar archive?
Answer : A
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
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
Which of the following statements is valid in the file /etc/nsswitch.conf?
Answer : C