Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to find size of the folder in UNIX

Posted on 2009-05-10
5
Medium Priority
?
1,130 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 84

Assisted Solution

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

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
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…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

609 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