1.
How is it possible to determine if an executable file is a shell script which is read by Bash?
2.
What is the output of the following command?
tail -n 20 test.txt
3.
Why is the file data.txt empty after executing sort data.txt > data.txt?
4.
What keyword is missing from the following segment of the shell script?
for i in *; _____
cat $i
done
5.
Which of the following statements may be used to access the second command line argument to a script?
6.
The output of the program date should be saved in the variable actdat. What is the correct statement?
7.
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
8.
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
9.
What is the output of the following command?
for token in a b c; do
echo -n ${token};
done
10.
Which command will display the last line of the file foo.txt?