Topic 3, GNU and Unix Commands
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Answer: jobs
Which of the following files, located in the user home directory, is used to store the Bash
history?
A.
bash_history
B.
bash_histfile
C.
history
D.
bashrc_history
E.
history_bash
bash_history
Explanation:
QUESTIONNO: 26
Which Bash environment variable defines in which file the user history is stored when
exiting a Bash process? (Specify ONLY the variable name.)
Which of the following commands will print the last 10 lines of a text file to the standard output?
A.
cat -n 10 filename
B.
dump -n 10 filename
C.
head -n 10 filename
D.
tail -n 10 filename
tail -n 10 filename
Which of the following statements is correct regarding the command foo 1> bar?
A.
The stdout from the command foo is appended to the file bar.
B.
The stdout from the command foo overwrites the file bar.
C.
The command foo receives its stdin from the file bar.
D.
The command foo receives its stdin from the stdout of the command bar.
E.
The stderr from the command foo is saved to the file bar.
The stdout from the command foo overwrites the file bar.
Which of the following commands displays the contents of a gzip compressed tar archive?
A.
gzip archive.tgz | tar xvf -
B.
tar ztf archive.tgz
C.
gzip -d archive.tgz | tar tvf -
D.
tar cf archive.tgz
tar ztf archive.tgz
Page 14 out of 49 Pages |
Previous |