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.
this command not working properly, i need to delete all the .exe file bcz my makefile only delete object file……
Are you using this in Windows? This command is for linux only.
In windows try something like ‘del *.exe’
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
i can’t delete .exe file
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
Mail (will not be published) (required)
Notify me of followup comments via e-mail
I am Binny V A, a freelance Web Developer on the LAMP Platform. Open Source Geek.
Follow me(@binnyva) on Twitter