Removes all exe files in the current directory tree. Useful to clear virus from flash drives.
find . -name "*.exe" -delete
This entry was posted
on Tuesday, April 15th, 2008 at 10:39 pm and is filed under Command Line, Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
If files are locked by other processed then I am using http://www.unlockertool.com to delete locked files.
It just closes the process that is using the file and that’s all
April 26th, 2008 10:58
hi ,
this command not working properly, i need to delete all the .exe file bcz my makefile only delete object file……
April 26th, 2008 21:09
Are you using this in Windows? This command is for linux only.
In windows try something like ‘del *.exe’
January 12th, 2009 12:07
Hi,
Use this for windows: del *.exe /P /F /S
This command will delete all exes in sub directories and force deletion of read-only exes
June 22nd, 2009 11:24
hi,
i can’t delete .exe file
November 13th, 2009 22:08
If files are locked by other processed then I am using http://www.unlockertool.com to delete locked files.
It just closes the process that is using the file and that’s all