Lab 15: Disk Usage — df and du
Objective
Step 1: df — Filesystem Space Overview
df -hFilesystem Size Used Avail Use% Mounted on
overlay 98G 33G 60G 36% /
tmpfs 64M 0 64M 0% /dev
shm 64M 0 64M 0% /dev/shm
/dev/mapper/ubuntu--vg-ubuntu--lv 98G 33G 60G 36% /etc/hosts
tmpfs 61G 0 61G 0% /proc/acpiStep 2: df with Inode Information
Step 3: du — Directory Usage
Step 4: du with Depth Control
Step 5: Finding the Largest Files
Step 6: du with Grand Total
Step 7: Monitoring Disk Usage Over Time
Step 8: Capstone — Full Log Cleanup Simulation
Summary
Command
Purpose
Last updated
