Difference between revisions of "Linux Disk Space Management"
From Coder Merlin
Line 1: | Line 1: | ||
== Display Quota and Usage == | |||
<syntaxhighlight lang="bash"> | |||
quota -s | |||
</syntaxhighlight> | |||
== Check Disk Space Used within Current Directory == | == Check Disk Space Used within Current Directory == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
Latest revision as of 21:17, 16 February 2019
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: Be ABSOLUTELY CERTAIN that you are deleting the correct directory. Once deleted, it is gone forever.
rm -rf <directoryName>