System MonitoringLesson 26Free preview
Bash Disk Space (df)
This lesson is part of Bash · All levels
Summary
The df command displays the capacity and remaining space on each installed file system. The -h option converts the byte into a readable unit like M and G. This information is important so that the disk is not full before installing or storing large data.
Key points
- Df = disk free, showing space per file system
- h gives a readily available unit
- Displays total, used, available, and percentage
- Different from the du that counts per directory
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.