LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-29-2003, 07:22 PM   #1
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
show size of all filesin a directory


what is the command for displaying the size of a directory plus all of its subdirectories and files, ive done soem searching and am terribly emberassed by my innability to find an answer
 
Old 09-29-2003, 07:29 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
try "du -s -k directory_to_count"

details: "man du"
 
Old 09-29-2003, 07:36 PM   #3
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Original Poster
Rep: Reputation: 30
thanks a lot
 
Old 09-29-2003, 07:38 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
you're welcome
 
Old 09-30-2003, 12:49 AM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Another way:
ls -Rhal desire_directory

You may want to redirect it to a file so you can easily view everthing. Some terminals can not hold a lot of lines.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to show only certain lines over a certain size in a file branall1 Linux - Software 2 11-15-2005 04:49 PM
Why does linux show less size of CD? aristarchus Debian 3 10-20-2005 03:34 AM
Directory and files don't show in Debian jonr Debian 1 05-17-2005 01:53 AM
ls - show first x files in directory ottergoose Linux - Newbie 2 09-06-2004 12:45 AM
How do I show the structur of directory with words? pelgrim Linux - Newbie 4 03-17-2003 07:30 PM


All times are GMT -5. The time now is 01:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration