[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

Recursively work out the size of a directory on Linux prompt

Hi,

Very quick question but apparently we've been googling for ages.

Say you've a directoy...
/home/sites/hello
Filled with numerous other directories and files.

Can a command be run to calculate recursively how big that directory and its contents are?
0
netcentraltech
Asked:
netcentraltech
1 Solution
 
Heem14Commented:
du -chs
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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