LinuxQuestions.org
Review your favorite Linux distribution.
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 06-12-2006, 02:46 AM   #1
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 183

Rep: Reputation: 30
list contents of directory without listing contents


hi,

say i've got a directory with 10000 files in it,and i'd like to display the size of the directory(and its contents),but not list the contents(the 1000ofiles) how can i do it?i've tried something like

Code:
ls -ldh dirname
but that does not seem to work,the size it lists is much smaller than the size i'm expecting.I'm sure theres just some little command,i've looked at the man pages,but i must have missed it.

Thanks
 
Old 06-12-2006, 04:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
are you not just after du?
 
Old 06-12-2006, 05:02 AM   #3
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 183

Original Poster
Rep: Reputation: 30
thanks,exactly what i was looking for.
 
  


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
cannot list directory contents kpachopoulos Linux - General 2 11-29-2005 06:24 PM
ls question: how to avoid listing contents of subdirectories learnfast Linux - Newbie 2 03-09-2005 09:59 AM
won't list contents of cdrom gillmb Linux - Newbie 2 10-19-2004 03:09 PM
where to find listing of distribution contents? mfeat Fedora 3 09-21-2004 12:13 PM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 11:09 AM


All times are GMT -5. The time now is 09: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration