Linux: Difference between revisions

167 bytes added ,  3 August 2020
Line 9: Line 9:
* <code>du</code> Disk Usage
* <code>du</code> Disk Usage
** <code>du -sh</code> Show size of current directory
** <code>du -sh</code> Show size of current directory
** <code>du -h --max-depth=1</code>
** <code>du -h --max-depth=1</code> Show size of files and folders in current directory. I have <code>du</code> aliased to this.
** Flags:
** Flags:
*** <code>-h</code> human readable (adds M or G)
*** <code>-h</code> human readable (adds M or G)
*** <code>--max-depth</code> depth to recurse. Default is <code>N</code>.
* <code>df</code> Disk Filesystems
* <code>df</code> Disk Filesystems
** Shows usage, total space available, and mount position
** Shows usage, total space available, and mount position