Easy to use crontab

If you want to add a time limit task to my server, you follow the steps:

  1. crontab -e
  2. Write like the command in the editor
  3. You can save the file in any location, and a copy will saved in /var/spool/cron
  4. crontab saved-file to take effect

Change timezone on Ubuntu

1. Check the timezone:

2. Change the timezone:

3. Be sure to restart cron as it won’t pick up the timezone change and will still be running on UTC.

 

A simple file server of Node.js

1.  npm install node-static -g

2. mkdir public (we could add files on the folder)

3. static /root/public  -a 0.0.0.0

Note: If you want more help, try static -h