How to use the du command: 2-Minute Linux Tips

How to use the du command: 2-Minute Linux Tips

Assessment

Interactive Video

Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains the DU command for reporting disk usage. It covers how to use the command to report file sizes in kilobytes by default and how to switch to a more human-friendly format using the -h option. The tutorial also demonstrates listing the sizes of individual home directories and the total size using the -c option. Additionally, it shows how to include the last update time of directories with the --time option.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default unit of measurement for file sizes when using the DU command?

Megabytes

Gigabytes

Bytes

Kilobytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option should be added to the DU command to display file sizes in a more human-friendly format?

-k

-m

-g

-h

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the -c option do when used with the DU command?

Displays file sizes in bytes

Lists the size of each file individually

Provides a total size for all directories

Shows the last access time of files

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you include the last update time of directories in the DU command output?

Apply the -t option

Include the -l option

Use the --time option

Add the -u option

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What additional information is provided when using the --time option with the DU command?

The creation date of files

The last update time of directories

The total number of files

The owner of each file