LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-08-2005, 02:37 PM   #1
totalrockage
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, 03:00 PM   #2
erraticassassin
Member
 
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131

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, 05:09 PM   #3
rickh
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, 06:53 PM   #4
Optimistic
Member
 
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.
 
  


Reply



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 01:33 PM
Hard Drive Space exaudiomag Linux - Newbie 3 01-05-2005 06:47 PM
how much hard drive space do i have? kfrancisco Linux - General 3 09-30-2003 10:15 AM
Hard drive space tied2 Linux - General 1 06-29-2002 06:16 PM
hard drive space, available bbenz3 Linux - General 4 03-22-2002 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 PM.

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