Determine folder size with “du” including sub folders

You can use du command to see the folder size in LINUX including subfolders.:

With du

du -h # including subfolders (-h means human readable format in MB, GB or TB)

If you want to exclude subfolders, type:

du -h –max-depth=1

 

If you want to know a specific folders size (easy to remember) type:

du -sh /home/someforlder

Where -h stands for human-readable & -s is to summerize the results.

  • 9 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

Setting time with NTP in LINUX

NTP (Network Time Protocol) could be used to set time synced with ntp clocks, to do this use the...

Linux version & Operating System info

LINUX Version Info To learn the architecture and kernel version info use the shell command...

Compile and build Apache + MySQL + PHP from the source [cite]

This is a complete working solution to build Apache (httpd-2.2.25), MySQL (MySQL-5.6.14) and PHP...

Using vi Editor

Vi is the one of the mostly used editor in Linux via terminal. In most cases where Linux is used...

Build PHP5.5 on CentOS 6.4 with MSSQL Support [cite]

Most of the yum repos doesn’t include PHP5.5.X on current releases for the time being. So...