Linux - Disk investigation

From Public wiki of Kevin P. Inscoe
Revision as of 15:43, 29 March 2018 by Kinscoe (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Check what files and folders are using up filesystem

$ sudo du -sh /*

What mount / partition a file or folder is on

$ sudo df -P '''file/goes/here''' | tail -1 | cut -d' ' -f 1