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

Wireguard VPN: Notes

Notes while trying Wireguard VPN on some of my testbeds.

Office 365: Alert Policies - Creation of forwarding/redirect rule

The default Creation of forwarding/redirect rule alert policy will be triggered when end-users create rule to forward or redirect mail

Linux command: ssh-keygen - Generate SSH Keys

ssh-keygen — authentication key generation, management and conversion