Question #476   Submitted by Answiki on 05/19/2021 at 08:42:05 PM UTC

On Linux, how to know free space on disk in command line?

Answer   Submitted by Answiki on 05/19/2021 at 08:49:17 PM UTC

The df command is designed to check disk space on Linux:

df -h /

  • the df command stands for disk free.
  • -h option is for human readable (print sizes in powers of 1024)
  • / displays the usage of your primary hard drive. It can be omitted or replaced by another file system (/dev/sda2 for example).



2 events in history
Answer by Answiki on 05/19/2021 at 08:49:17 PM

The df command is designed to check disk space on Linux:

df -h /

  • the df command stands for disk free.
  • -h option is for human readable (print sizes in powers of 1024)
  • / displays the usage of your primary hard drive. It can be omitted or replaced by another file system (/dev/sda2 for example).



Question by Answiki 05/19/2021 at 08:42:05 PM
On Linux, how to know free space on disk in command line?
# ID Query URL Count

Icons proudly provided by Friconix.