India Broadband Forum


Remove big archive file using find command

This is a discussion on Remove big archive file using find command within the Linux forums, part of the Operating Systems category; The following command removes *.zip files that are over 100M. # find / -type f -name *.zip -size +100M -exec ...

Go Back   India Broadband Forum > Computers > Operating Systems > Linux

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 07-17-09, 12:21 PM   #1
Junior Member
 
Join Date: Jul 2009
Posts: 16
Rep Power: 1
vasudha is on a distinguished road
Default Remove big archive file using find command

The following command removes *.zip files that are over 100M.

# find / -type f -name *.zip -size +100M -exec rm -i {} \;"

Remove all *.tar file that are over 100M using the alias rm100m (Remove 100M). Use the similar concepts and create alias like rm1g, rm2g, rm5g to remove file size greater than 1G, 2G and 5G respectively.

# alias rm100m="find / -type f -name *.tar -size +100M -exec rm -i {} \;"
# alias rm1g="find / -type f -name *.tar -size +1G -exec rm -i {} \;"
# alias rm2g="find / -type f -name *.tar -size +2G -exec rm -i {} \;"
# alias rm5g="find / -type f -name *.tar -size +5G -exec rm -i {} \;"

# rm100m
# rm1g
# rm2g
# rm5g
vasudha is offline   Reply With Quote
Reply

Tags
archive, big, file, find, remove

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Command and Conquer Red Alert 3 ! ShAdOwCoN Videogaming News and Reviews 11 03-27-09 08:23 AM
Deleted a file? Find in black market Rameshjeee News from the Tech and IT World 0 11-06-08 11:31 PM
Aspyr Media announces Command & Conquer Generals and Command & Conquer Generals Admin Videogaming News and Reviews 0 12-08-06 09:12 PM
CBS News going online with vintage archive clips Admin News from the Tech and IT World 0 07-16-06 02:17 AM
Command & Conquer 3? India Broadband Internet Videogaming News and Reviews 0 04-22-06 11:16 PM


All times are GMT +5.5. The time now is 08:27 PM.


India Broadband Forum