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 ...
| |||||||
| | #1 |
| Junior Member Join Date: Jul 2009
Posts: 16
Rep Power: 1 | 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 |
| | |
| Tags |
| archive, big, file, find, remove |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |