LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Available hard drive space (https://www.linuxquestions.org/questions/linux-newbie-8/available-hard-drive-space-311174/)

totalrockage 04-08-2005 02:37 PM

Available hard drive space
 
How would I find out how much space a folder takes up on the hard drive using the command line?

erraticassassin 04-08-2005 03:00 PM

Try du -h FILENAME. du is the disk usage command - the -h option displays the result in human-readable format, if memory serves.

If that doesn't work, consult the man page for du and check out the available options. I'm not at a Linux box now, otherwise I'd check for you...

rickh 04-08-2005 05:09 PM

...or you might try command 'df'

Optimistic 04-08-2005 06:53 PM

For folders and such a du -sh /folder/path would do it. To see the sizes and usage of mounted filesystems a df-h will do.


All times are GMT -5. The time now is 12:15 PM.