DEV Community

Discussion on: How to free up disk space on Ubuntu Server

Collapse
 
pazyp profile image
Andrew Pazikas

Another good command to list to 10 largest files by size, can be really useful for quickly finding large logs across a whole server.

find / -type f -exec ls -h {} \; |awk '{print $7, $11}' | sort -n | tail -10

chnage the tail value to show more files :)