👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

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

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).