Linux Disk Space Management

From Coder Merlin
Revision as of 20:17, 16 February 2019 by Chukwuemeka-tinashe (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>