title: sudo vim crontab vs sudo crontab e - when to use
body: <p>I am trying to get to grip with cron jobs on ubuntu.</p>
  
  <p>I am not sure of the difference between</p>
  
  <pre><code>sudo crontab -e
  </code></pre>
  
  <p>and </p>
  
  <pre><code>sudo vim /etc/crontab
  </code></pre>
  
  <p>I assume they both create cron jobs which run under root?</p>
  
  <p>However they give me different files.</p>
  
  <p><code>sudo vim /etc/crontab</code> </p>
  
  <p>gives me /etc/crontab I think, which is the system wide cron responsible for run-parts and execution of cron.daily etc.</p>
  
  <p>I assume therefore that</p>
  
  <p><code>sudo crontab -e</code> </p>
  
  <p>creates a personal crontab under /var/spool/cron/crontabs (as per any other user crontab)?  But sudo makes it operate under root privileges and associates the crontab to the root user?</p>
  
  <p>Is this correct?</p>
  
  <p>i </p>