How can the current directory and its subdirectories be searched for the file named
MyFile.xml?
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 of the following commands will set the variable text to olaf is home? (Choose two)
Answer : AE
What is the correct command to extract the contents of the archive file download.bz2?
Answer : C
Which approach will provide a listing of the contents in a tar archive?
Answer : A
The output of the program date should be saved in the variable actdat. What is the correct statement?
Answer : A
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
Answer : E
Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?
Answer : E
Which command will display the last line of the file foo.txt?
Answer : D
What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done
Answer : B
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two)
Answer : D,E
Given a file called birthdays containing lines like:
YYYY-MM-DD Name -
1983-06-02 Tim
1995-12-17 Sue
Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
Answer : C
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)
Answer : #!
Which of the following command sequences overwrites the file foobar.txt?
Answer : C
Which character starts a comment line in a shell script file?
Answer : C
Have any questions or issues ? Please dont hesitate to contact us