title: How and when to clean and restart while editing code on tomcat production server
body: <p>This question is going to consist many subquestions.</p>
  
  <p>I have been working as Java Web developer since last one year.I use eclipse for development but when it comes to deploying code on production Server and making minor changes in a code I do it by accessing server <strong>using SSH and simple text-editor</strong>. Shifting from IDE to command line causing me few Problems.</p>
  
  <p><strong>Questions</strong></p>
  
  <ol>
  <li>in eclipse I clean the project after making changes in .java or .xml files.How can I clean it using command line? </li>
  <li>What exactly clean and build does? cleaning is same as that of restarting  a server?</li>
  <li>What scenarios(developer point of view) requires Server restart?</li>
  <li>editing css, html doesn't require server restart.On what file edits I should restart the server?</li>
  <li>Server.xml and context.xml requires restart or not?</li>
  <li>what is the difference between startup.sh and Catalina.sh?</li>
  </ol>
  
  <p><strong>ps :- I know few of the above questions might be too simple(or some may say foolish),but I really don't know them.</strong></p>