LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-20-2002, 12:19 PM   #1
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
A really dumb question


Here's a really dumb question: how do I find the aggregate size of all the files under a certain directory (including subdirectories)?

Thanks
 
Old 07-20-2002, 12:38 PM   #2
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
you could check konqueror --view--detailed view list . It gives you lots of info ( size/filetype/modified/permissions/owner/group/link ) .
 
Old 07-20-2002, 12:44 PM   #3
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Nautilus _ look at the properties. for a directory/folder it will teeyou how many items are in it and their total size
 
Old 07-20-2002, 12:45 PM   #4
zeky
Member
 
Registered: Jul 2002
Location: Vukojebina, Europe, Earth
Distribution: M$ Lunix v6.66
Posts: 168

Rep: Reputation: 30
erm.... df -h ?
 
Old 07-20-2002, 12:54 PM   #5
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Original Poster
Rep: Reputation: 15
I am looking for a command line solution here so I can use it in a script.

df -h just shows me the total useage. I want to find the useage in a particular branch of the directory tree.


Thanks.
 
Old 07-20-2002, 12:55 PM   #6
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
du -sh *

Should list all directories and usage

du -sh

will give it for the whole of present directory

Last edited by sarin; 07-20-2002 at 12:57 PM.
 
Old 07-20-2002, 12:57 PM   #7
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Original Poster
Rep: Reputation: 15
du. Ahhh - thank you. I knew there was a command, I just couldn't remember it.

Thanks again,
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb question xedios Linux - Software 6 08-31-2004 03:24 PM
dumb a*s question Jetta-GT- Linux - Newbie 3 01-08-2004 06:58 AM
REALLY dumb question christer Linux - Newbie 11 10-05-2003 11:43 PM
Dumb question Thetargos Linux - Software 3 05-06-2003 08:31 PM
Dumb Question!!!! cirkut5732 Linux - Newbie 3 04-16-2003 01:39 PM


All times are GMT -5. The time now is 04:25 AM.

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