Difference between revisions of "Linux Disk Space Management"
From Coder Merlin
(Created page with "== Check Disk Space Used within Current Directory == <syntaxhighlight lang="bash"> du -h -d1 </syntaxhighlight> == Free Disk Space Used by Swift Package == <syntaxhighlight l...") |
|||
Line 7: | Line 7: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
swift package reset | swift package reset | ||
</syntaxhighlight> | |||
== Remove an Empty Directory == | |||
<syntaxhighlight lang="bash"> | |||
rmdir <directoryName> | |||
</syntaxhighlight> | |||
== Remove a Non-Empty Directory == | |||
{{notice|[[File:Warning icon.svg|frameless|30px]]|Warning: Be ABSOLUTELY CERTAIN that you are deleting the correct directory. Once deleted, it is gone forever.}} | |||
<syntaxhighlight lang="bash"> | |||
rm -rf <directoryName> | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 07:56, 4 February 2019
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
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>