Linux/Find Large Files

From Omnia
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