Solved

How to find size of the folder in UNIX

Posted on 2009-05-10
5
1,116 Views
Last Modified: 2012-05-06
How  to find size of the folder in UNIX where that folder contains sub folders in it?
0
Comment
Question by:umesh4exp
5 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 total points
ID: 24347745
du -ks /folder

gives its size in kilobytes

wmp
0
 
LVL 12

Accepted Solution

by:
geowrian earned 150 total points
ID: 24347749
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 150 total points
ID: 24347754
du folder
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 150 total points
ID: 24347793
du -sh folder
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 100 total points
ID: 24348349
be careful if the dir has a subdir that is a separate filesystem. you may use

du -sxh /path/to/dir
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question