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...")
 
 
(One intermediate revision by the same user not shown)
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">
Line 7: Line 12:
<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>

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