DEV Community

Cover image for How to see the free disk space in Linux?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to see the free disk space in Linux?

Originally posted here!

To see the amount of free disk space, you can use the df command in Linux.

# Shows the amount of free disk space
df
Enter fullscreen mode Exit fullscreen mode

Once you execute the df command on the terminal in Linux, you can see an output like below,

free disk space using the df Linux command

From the above output you can see the:

  • Used space on a particular disk
  • Available space on a particular disk
  • and Capacity used on a particular disk in percentage.

See the above code live in repl.it.

That's all 😃!

Feel free to share if you found this useful 😃.


Top comments (0)