Go Back on 101-500 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

101-500 Practice Test


Page 14 out of 49 Pages

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





A.
  

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





D.
  

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.





B.
  

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





B.
  

tar ztf archive.tgz




Page 14 out of 49 Pages
Previous