LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 05-12-2005, 12:41 PM   #1
supersucker
Member
 
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Rep: Reputation: 15
determining directory size


hi,

how can i determine the size of a single directory on the file system?

i know the df - command, but its output only shows how much space is availabe on the entire file-system.....

thx in advance.........
 
Old 05-12-2005, 12:46 PM   #2
supersucker
Member
 
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Original Poster
Rep: Reputation: 15
ok,

should have googled first...........

>> du /dir/ect/ory

is the answer..........
 
Old 05-12-2005, 12:47 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
Code:
 du /path/to/dir
More pleasing to the eye is
Code:
 du -sh /path/to/dir
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++: Determining present working directory harshnoise Programming 4 09-16-2005 09:28 AM
Shell: Tar files: programmatically determining the name of the target directory stefanlasiewski Programming 3 08-17-2005 08:48 PM
tput - determining window size subu_s Programming 2 12-06-2004 10:46 PM
directory size santoshgnag Linux - General 1 06-26-2003 04:00 AM
Directory Size Helixx Linux - General 1 04-27-2001 08:49 PM


All times are GMT -5. The time now is 03:29 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration