Linux Disk Space Management

From Coder Merlin
Jump to navigation Jump to search

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>

CoderMerlin™ proudly recommends:

Your purchase via these links helps keep  Coder Merlin™ 's orbuculum ablaze. As an Amazon Associate we earn from qualifying purchases. Thank you for your support!

Designed with pride in Silicon Valley, CA, USA