Solved

How to find size of the folder in UNIX

Posted on 2009-05-10
5
1,106 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now