The above command will display the largest file from /home/tecmint/Downloads directory. # find /home/tecmint/Downloads/ -type f -printf "%s %p\n" | sort -rn | head -n 5 If you want to display the biggest file sizes only, then run the following command: # find -type f -exec du -Sh | sort -rh | head -n 5
0 Comments
Leave a Reply. |