Sobes.tech
Junior — Middle

How can you determine the current disk space usage in a Linux system?

sobes.tech AI

Answer from AI

To determine the current disk space usage in Linux, the df command is usually used. It shows information about filesystems, their size, used and free space.

Example:

df -h

The -h option displays sizes in a human-readable format (KB, MB, GB).

You can also use the du command to estimate the size of specific directories or files:

du -sh /path/to/directory

where -s is for summary, -h for human-readable format.

How can you determine the current disk space usage in… - sobes.tech