工作排程 cron

crontab -e

指定編輯器

sudo update-alternatives --config editor
      Selection    Path                Priority   Status
    ------------------------------------------------------------
    * 0            /bin/nano            40        auto mode
      1            /bin/ed             -100       manual mode
      2            /bin/nano            40        manual mode
      3            /usr/bin/vim.basic   30        manual mode
      4            /usr/bin/vim.tiny    10        manual mode

指定每日0點10分重啟系統

10 0 * * * /usr/bin/sudo /sbin/reboot

results matching ""

    No results matching ""