Previous Article

Viewing Disk space remaining in Linux Command Line

Next Article

If, like me, you run a command line Linux distro then seeing useful stats like disk space remaining on your hard drive is a must. To see the current hard drive usage of all mounted partitions simply type the following command into a terminal.

df -h

You should see something similar to the image below.

CLI Output from df -h command in Linux

The -h simply puts the drive space into human-readable format eg. 10K, 45G, 1.1T.

There are other options available for the df command but nothing else that needs covering in this post.

If you have other/better ways of getting the same information in Linux command line then please feel free to comment below.

Avatar of Clive Walkden

Clive Walkden

Posted:

Latest Articles

Linux command line tools, installations etc

Linux

How to Install NordLayer VPN Client on Ubuntu 20.04 and Connect to a Virtual Network

A simple to follow installation guide for NordLayer VPN

MySQL usage, tweaks and learnings

MySQL

Mastering MySQL Database Imports on Linux

Learn efficient ways to import MySQL databases on Linux using the mysql command-line client. Explore the --source option and < operator for seamless data migration. Master MySQL imports on Linux with our comprehensive guide.

DevOps principles and tool usage

DevOps

Mastering SSH Key Conversions for DevOps

A guide to convert SSH keys from one version to another using Linux CLI