Managing Disk Space   «Prev  Next»
 

Disk Usage | File Compression - Quiz

Disk usage and file compression

Each question is worth one point. Select the best answer or answers for each question.

1. Which command displays the total size of the current directory only, without reporting on subdirectories or files?
Please select the best answer.
  A. du
  B. du -a
  C. du -k
  D. du -s

2. Suppose you just compressed a text file named phonelist, but now want to look inside it. Which command shows you the contents of the file?
Please select the best answer.
  A. cat phonelist
  B. zcat phonelist
  C. uncompress phonelist
  D. more phonelist

3. When you use compress with the –v option, which three of the following items appear in the output?
Please select all the correct answers.
  A. The original file name
  B. The new file name
  C. The size of the original file
  D. The amount of compression