?
Solved

How to find size of the folder in UNIX

Posted on 2009-05-10
5
Medium Priority
?
1,164 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 400 total points
ID: 24347745
du -ks /folder

gives its size in kilobytes

wmp
0
 
LVL 12

Accepted Solution

by:
geowrian earned 600 total points
ID: 24347749
0
 
LVL 85

Assisted Solution

by:ozo
ozo earned 600 total points
ID: 24347754
du folder
0
 
LVL 85

Assisted Solution

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

Assisted Solution

by:omarfarid
omarfarid earned 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

589 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