To list large files in a directory and subdirectories
1 |
find /home/user -type f -size +10000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' |
This command looks for files larger than 10MB in /home/user directory and displays the result as follows:
/home/user/largefile1.tar.bz2: 32M
/home/user/bugzilla.sql: 21M
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress