Please advise how do i find the top 10 file size in Ubuntu/Linux? My Ubuntu server version is 20.04
Thanks
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Please advise how do i find the top 10 file size in Ubuntu/Linux? My Ubuntu server version is 20.04
Thanks
You can use following command, which also you can find top 10 largest files (>10M) on your ubuntu/linux system, also sort by the biggest:
find / -xdev -type f -size 10M -exec du -sh {} ';' | sort -rh | head -n10
also find combined with ls -la to get more details. You should have sudo privileges to do that
find / -xdev -type f -zise +10M -exec ls -lha {} \; | soft -nk 5
To only see files that are in the gigabyte, do:
du -ahx / | grep -E '\d+G\s+'