Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Disk and Storage Commands

Disk and Storage Commands df -h shows free disk space. du -h shows how big folders are. Find big folders: du -h --max-depth=1 | sort -h When the disk is 100% full , MySQL and Nginx give strange errors. People search their code for hours. Always check df -h first. A full disk can stop logs from being

Disk and Storage Commands df -h shows free disk space. du -h shows how big folders are. Find big folders: du -h --max-depth=1 | sort -h When the disk is 100% full , MySQL and Nginx give strange errors. People search their code for hours. Always check df -h first. A full disk can stop logs from being
Disk and Storage Commands · Download PNG
Read card text

What this card says

What it is

df -h shows free disk space. du -h shows how big folders are.

Example

Find big folders: du -h --max-depth=1 | sort -h

Common mistake

When the disk is 100% full, MySQL and Nginx give strange errors. People search their code for hours.

Always check df -h first.

Security link

A full disk can stop logs from being written. Then attacks leave no trace.

Learn more in the lesson: 6.8 Disk and Storage Commands

See all Ravi Sir's Cyber Security Cards