Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the unix command to see how much disk space there is and how much is remaining?

Tags:

I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.

like image 328
Brian Avatar asked Oct 23 '08 16:10

Brian


People also ask

How do I check the total disk space?

From the Windows desktop, double-click the My Computer icon. In My Computer, highlight and right-click the drive whose capacity you'd like to determine. In the menu that appears, select Properties. The Properties window displays the used space, free space, and the total capacity of the hard drive or other drives.

How do I check disk space percentage in Linux?

Check Disk Space in Linux Using the df Command df, which stands for Disk Filesystem, is used to check disk space. It will display available and used storage of file systems on your machine. When executing this command, you will see the default columns: Filesystem, Size, Used, Available, Use%, and Mounted On.


2 Answers

Look for the commands du (disk usage) and df (disk free)

like image 174
MrZebra Avatar answered Sep 21 '22 12:09

MrZebra


Use the df command:

df -h

like image 34
Russ Avatar answered Sep 19 '22 12:09

Russ