LinuxQuestions.org
Review your favorite Linux distribution.
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 12-30-2003, 08:40 AM   #1
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Finding size of a directory


I've used Linux for quite some time now and I never really was asked how to find the size of a certain directory, is this possible? If so, how can I do it.
 
Old 12-30-2003, 08:44 AM   #2
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
du [directory] -h --max-depth=0

-h makes output more human friendly (e.g. size in mb) max depth stops it retriving the size of directories inside the directory you want

Regards,

James
 
Old 12-30-2003, 08:49 AM   #3
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Original Poster
Rep: Reputation: 30
Thanks man, I was just going to re-post saying that I figured it out.
 
  


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
Finding the file size harrylmh Programming 8 04-29-2006 03:59 PM
Finding installed raw disks and size looseCannon Solaris / OpenSolaris 5 02-23-2005 01:26 PM
Finding File Size cmfarley19 Linux - General 1 01-24-2005 08:36 AM
finding size of total files in a directory blackzone Linux - Newbie 3 01-07-2005 03:01 AM
Finding files via their size ivanatora Linux - General 1 09-08-2004 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:34 PM.

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