Skip to main content

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

du -sh : summary, human readable format (B,KB,MB,GB)
du -d 1 : 1 depth level
du / -h -d 1
  • /: root directory
  • h: Display in human format K M G
  • d: --max-depth is 1 (one) level
Liux command: du - disk usage

Take a look at /usr and /var directories

du /usr -h -d 1
du /var -h -d 1

df -h

>>> THM | Linux Modules - Task 2

Related articles

>>> Disk Usage on Windows

Popular posts from this blog

Red Hat: Notes

Windows Event Log Settings

wevtutil set-log Application /ms:134217728 wevtutil set-log Security /ms:134217728 wevtutil set-log System /ms:134217728 wevtutil set-log Setup /ms:134217728 wevtutil set-log Application /rt:true /ab:true wevtutil set-log Security /rt:true /ab:true wevtutil set-log System /rt:true /ab:true wevtutil set-log Setup /rt:true /ab:true /ms: maximum size in bytes /rt: retention /ab: automatic backup

Synology: Commonly Used Commands

Commonly used commands via ssh with Synology NAS.