Download your favorite Linux distribution at LQ ISO.
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 05-12-2005, 01:41 PM   #1
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Rep: Reputation: 15
determining directory size


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, 01:46 PM   #2
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Original Poster
Rep: Reputation: 15

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

>> du /dir/ect/ory

is the answer..........
Old 05-12-2005, 01:47 PM   #3
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

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


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
C++: Determining present working directory harshnoise Programming 4 09-16-2005 10:28 AM
Shell: Tar files: programmatically determining the name of the target directory stefanlasiewski Programming 3 08-17-2005 09:48 PM
tput - determining window size subu_s Programming 2 12-06-2004 11:46 PM
directory size santoshgnag Linux - General 1 06-26-2003 05:00 AM
Directory Size Helixx Linux - General 1 04-27-2001 09:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:56 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
Open Source Consulting | Domain Registration