LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Command to find free space? (https://www.linuxquestions.org/questions/linux-general-1/command-to-find-free-space-946744/)

tokyoasha 05-24-2012 11:41 PM

Command to find free space?
 
I'm not sure if this is the right thread or not, if not please let me know the proper way to post my question.

My question is, how to find out how much free space on your disk (I'm using centos)

Thank you in advance,

Asha

TommyC7 05-25-2012 12:11 AM

The "free" command tells you how much data is free.
Code:

man free
For free's manual page and more info.

blue_print 05-25-2012 12:14 AM

df command is the solution.

Code:

df -h
Refer http://currentlinux.com/blog/?p=91 for more help

blue_print 05-25-2012 12:15 AM

Quote:

Originally Posted by TommyC7 (Post 4686992)
The "free" command tells you how much data is free.
Code:

man free
For free's manual page and more info.

free command gives only data about memory in the system. It does not give disk usage etc..

tokyoasha 05-25-2012 12:20 AM

Thank you
 
Thank you all for your help, free command is great:)

TommyC7 05-25-2012 12:45 AM

Oh whoops, lol wrong command, yes it's supposed to be "df" or "du" depending on what you're looking for, but it seems like you want df.

colucix 05-25-2012 04:33 AM

Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.

nixblog 05-25-2012 04:45 AM

I also like to use ncdu for disk space analysis as you can drill down into the file system to see whats using the space.

onebuck 05-25-2012 07:19 AM

Moderator response
 
Moved: This thread is more suitable in <Linux-General> and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 08:04 PM.