This script will search for all the .exe file in your system and ask whether you need to delete this or not .
As we donot need any .exe file in linux so its better delete all the .exe file .
#!/bin/sh
echo "Please give the directory where the .exe file present "
read i
cd $i
ls -l *.exe
find $i -name "*.exe" -exec rm -rvi '{}' \ ;
echo "All file .exe file in the $i directory is deleted now "
exit 0
just copy the above script .
go for /home/user/Desktop
gedit exe
just past above script .save it.
now type "sudo chmod +x exe"
lastly
./exe
and provide the directory where the .exe file is located.
As we donot need any .exe file in linux so its better delete all the .exe file .
#!/bin/sh
echo "Please give the directory where the .exe file present "
read i
cd $i
ls -l *.exe
find $i -name "*.exe" -exec rm -rvi '{}' \ ;
echo "All file .exe file in the $i directory is deleted now "
exit 0
just copy the above script .
go for /home/user/Desktop
gedit exe
just past above script .save it.
now type "sudo chmod +x exe"
lastly
./exe
and provide the directory where the .exe file is located.
No comments:
Post a Comment