↑ ↓ select, Enter open, Esc close

Show free disk space on all filesystems

user@server
df -hT -x tmpfs -x devtmpfs -x squashfs

Lists all mounted filesystems with type, total size, used space and percentage. Virtual filesystems such as tmpfs are hidden to keep the overview readable. Act at around 90 percent usage, since databases and mail servers throw errors when the disk is full.

Note: If free space is shown but writes still fail, the inodes are often exhausted (df -i).

Also searched as

  • how much disk space is left linux
  • check if disk is full
  • free space on server
  • show disk usage

Related one-liners

All in Filesystem

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.