Linux Server Disk Space: Command Line Tools for Viewing Free Disk Space | CompTIA Server+ Exam SK0-004

Inspect Free Disk Space on Linux Server - /dev/sda Partition

Prev Question Next Question

Question

A technician is troubleshooting a Linux server and wants to inspect the free disk space on the /dev/sda partition of the system.

Which of the following command line tools should the administrator run to view available disk space on the partition?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

The command line tool that the technician should run to view available disk space on the /dev/sda partition of the Linux server is df.

Explanation of each command:

A. dd: This command is used for copying and converting files. It does not provide information on disk space.

B. du: This command is used to display the disk usage of files and directories on the file system. It can be used to determine how much space each file or directory is taking up, but it does not provide information on free disk space.

C. ls: This command is used to list files and directories in a directory. It does not provide information on disk space.

D. df: This command is used to display information about the disk space usage on a file system. It shows the total size of the partition, the amount of space used, the amount of space available, and the percentage of space used. The df command is the correct command to use in this situation to inspect free disk space on the /dev/sda partition of the Linux server.

In conclusion, the correct answer to the question is D. df.