Page 1 of 1

How to find all the tar.gz files and its size

Posted: Mon Feb 17, 2014 8:01 am
by a24uall
Below command will list all the tar.gz files and its size.

Code: Select all

find /home/*/ -iname '*.tar.gz' -exec du -sh {} \; > /root/backups_list.txt