Linux/Find Large Files

From Omnia
Revision as of 03:43, 20 September 2022 by Kenneth (talk | contribs) (Created page with " find /home -xdev -size +500k -ls > piggies -- <pre> find /path/to/directory -type f -exec du -hs {} \;| sort -rh | head -n 1 du -sh * | sort -rh | head -5 ls -lSh /bin | he...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
find /home -xdev -size +500k -ls > piggies

--

find /path/to/directory -type f -exec du -hs {} \;| sort -rh | head -n 1
du -sh * | sort -rh | head -5
ls -lSh /bin | head -5
find ./ -type f -exec du -sh {} \; |sort -h|tail -5
du -ah /home | sort -h -r | head -n 5
find $directory -type f -exec ls -s {} \; | sort -n | tail -n 5

ref: https://www.howtouselinux.com/post/find-largest-files-and-directories-in-linux