Crontab 在哪里?Ubuntu 16.04

pet*_*ntu 5 cron anacron

我一直试图从这个视频中找出如何使用 crontab 添加作业:

https://www.youtube.com/watch?v=vrPGRE6FV9g

足够简单易懂,但我在等中找不到 crontab?实际上,一些视频似乎也提到了 crontab。似乎所有视频都很旧,不适用于 Ubuntu 16.04。

那么它在哪里,如果有的话?如果没有,有人有我可以遵循的 16.04 教程吗?

谢谢!

编辑:对不起,伙计们,我找到了。我在 etc/ 中寻找物理文件夹,但它不是文件夹!!!谢谢大家。

Rin*_*ind 8

sudo nano /etc/crontab 
Run Code Online (Sandbox Code Playgroud)

...会让你添加cronjobs。它在那里有一点评论来解释基础知识。它还包含用于每日、每周和每月作业的方法。


编辑:这是文件:

 more /etc/crontab 
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.monthly )
#
Run Code Online (Sandbox Code Playgroud)