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

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

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

Post 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
Arun
WebhostingDevelopment.com
Post Reply

Return to “Basic (Small scripts)”