Linux Disk Space Management

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Display Quota and Usage[edit]

quota -s

Check Disk Space Used within Current Directory[edit]

du -h -d1

Free Disk Space Used by Swift Package[edit]

swift package reset

Remove an Empty Directory[edit]

rmdir <directoryName>

Remove a Non-Empty Directory[edit]

Warning icon.svg Warning: Be ABSOLUTELY CERTAIN that you are deleting the correct directory. Once deleted, it is gone forever.
rm -rf <directoryName>