LinuxQuestions.org
Help answer threads with 0 replies.
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 09-29-2003, 06: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, 06: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, 06: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, 06:38 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
you're welcome
 
Old 09-29-2003, 11:49 PM   #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



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 03:49 PM
Why does linux show less size of CD? aristarchus Debian 3 10-20-2005 02:34 AM
Directory and files don't show in Debian jonr Debian 1 05-17-2005 12:53 AM
ls - show first x files in directory ottergoose Linux - Newbie 2 09-05-2004 11:45 PM
How do I show the structur of directory with words? pelgrim Linux - Newbie 4 03-17-2003 06:30 PM

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

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