Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-08-2005, 03:37 PM   #1
LQ Newbie
Registered: Apr 2005
Location: Austin, Texas
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Available hard drive space

How would I find out how much space a folder takes up on the hard drive using the command line?
Old 04-08-2005, 04:00 PM   #2
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 127

Rep: Reputation: 18
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...
Old 04-08-2005, 06:09 PM   #3
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
...or you might try command 'df'
Old 04-08-2005, 07:53 PM   #4
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not enough hard drive space? doxford Red Hat 1 07-04-2005 02:33 PM
Hard Drive Space exaudiomag Linux - Newbie 3 01-05-2005 07:47 PM
how much hard drive space do i have? kfrancisco Linux - General 3 09-30-2003 11:15 AM
Hard drive space tied2 Linux - General 1 06-29-2002 07:16 PM
hard drive space, available bbenz3 Linux - General 4 03-22-2002 02:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration