LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-23-2004, 11:42 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
A simple command displaying the size of a directory


Hi folks,

FedoraCore2
===========

What will be the simple command line on terminal displaying the size of a directory (/Dir_AAA) in MB including all its subdirectories and files.

TIA

B.R.
satimis
 
Old 11-23-2004, 11:50 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,164

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
man du -- in particular, du -s will help you.
 
Old 11-23-2004, 11:51 PM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
du

Is it simple enough?
 
Old 11-23-2004, 11:55 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
use "du -h" for filesize in bytes
 
Old 11-24-2004, 12:32 AM   #5
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Hi,

Code:
du -sh /Dir_AAA
should work good for you

Last edited by nitin_batta; 11-24-2004 at 12:33 AM.
 
Old 11-24-2004, 01:06 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi folks,

Your advice noted with thanks.

B.R.
satimis
 
  


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
command to split up directory by size? dr_zayus69 Programming 6 06-27-2005 04:12 AM
Simple bash problem - checking for files and displaying the first line morrolan Programming 4 03-07-2005 11:40 AM
displaying services from command line stellarmarine1 Linux - Enterprise 5 10-01-2004 04:28 AM
redhat command to display the size of directory please! sandrinechen Linux - Newbie 4 04-19-2004 04:19 AM
displaying swap space size with df durden2.0 Linux - Newbie 2 07-14-2003 02:07 AM


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