System administration: Difference between revisions

Line 242: Line 242:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ cd -
$ cd -
</syntaxhighlight>
== Check disk space usage ==
You can check the file space usage with the command <span class="package">du</span>.
<syntaxhighlight lang="bash">
$ du -h
</syntaxhighlight>
== Check disk space left ==
<span class="package">df</span> is for checking the amount of disk space used and available on file systems.
<syntaxhighlight lang="bash">
$ df -h
</syntaxhighlight>
</syntaxhighlight>