Thursday, June 30, 2016

Remove the contents of a folder in linux

  1. To remove the folder with all its contents(including all interior folders): rm -rf /path/to/directory.
  2. To remove all the contents of the folder(including all interior folders) but not the folder itself: rm -rf /path/to/directory/*

Thursday, June 2, 2016

Address already in use tomcat


I also had the same issue. Tried all the options suggested in this thread. But didnt help. Then just did ran:
ps -awwef | grep tomcat
and found some stale process running. I killed it using (-15 instead of -9)
sudo kill -15 <tomcat pid from previous command>
And woot! it worked. Restarted tomcat without any issue.

http://stackoverflow.com/questions/8040640/tomcat-startup-8080-address-already-in-use