Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1145
  • Last Modified:

How to find size of the folder in UNIX

How  to find size of the folder in UNIX where that folder contains sub folders in it?
0
umesh4exp
Asked:
umesh4exp
5 Solutions
 
woolmilkporcCommented:
du -ks /folder

gives its size in kilobytes

wmp
0
 
geowrianCommented:
0
 
ozoCommented:
du folder
0
 
ozoCommented:
du -sh folder
0
 
omarfaridCommented:
be careful if the dir has a subdir that is a separate filesystem. you may use

du -sxh /path/to/dir
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now