Linux - Disk investigation: Difference between revisions

From Public wiki of Kevin P. Inscoe
Jump to navigation Jump to search
(Created page with "==Check what files and folders are using up filesystem== <pre> $ sudo du -sh /* </pre> ==What mount / partition a file or folder is on== <pre> $ sudo df -P '''file/goes/he...")
 
No edit summary
Line 8: Line 8:


<pre>
<pre>
$ sudo df -P '''file/goes/here''' | tail -1 | cut -d' ' -f 1
$ sudo df -P '''/mount/point''' | tail -1 | cut -d' ' -f 1
</pre>
</pre>

Revision as of 15:49, 29 March 2018

Check what files and folders are using up filesystem

$ sudo du -sh /*

What mount / partition a file or folder is on

$ sudo df -P '''/mount/point''' | tail -1 | cut -d' ' -f 1