Posted on August 9, 2016, 9:37 pm
LINUX : FIND AND DELETE FILE OR DIRECTORY
Syntax
find . -name "WHAT YOU WANT TO FIND" -exec rm -r -f {} \;
find . -name ".settings" -exec rm -r -f {} \;
find . -name ".project" -exec rm -r -f {} \;
find . -name ".classpath" -exec rm -r -f {} \;
find . -name "target" -exec rm -r -f {} \;
find . -name ".git" -exec rm -r -f {} \;
find . -name ".idea" -exec rm -r -f {} \;
find . -name ".gitattributes" -exec rm -r -f {} \;
find . -name ".gitignore" -exec rm -r -f {} \;
WINDOWS : FIND AND KILL PROCESS BY PORT
Syntax
netstat -a -o -n | findstr "LISTENING" | findstr ":XXXX"
taskkill /F /PID
XXXX : port number that you want to find
netstat -a -o -n | findstr "LISTENING" | findstr ":8080"
netstat -a -o -n | findstr "LISTENING" | findstr ":8080"
2252 : port number that i want to kill