Đây là một trích xuất bao gồm câu hỏi của bạn. Từman cron
GHI CHÚ cron tìm kiếm khu vực spool của nó (/ var / spool / cron / crontabs) cho các tệp crontab (được đặt tên theo các tài khoản trong / etc / passwd); crontabs tìm thấy được tải vào bộ nhớ. Lưu ý rằng crontab trong thư mục này không nên được truy cập trực tiếp - lệnh crontab nên được sử dụng để truy cập và cập nhật chúng.
cron also reads /etc/crontab, which is in a slightly different format
(see crontab(5)). Additionally, cron reads the files in /etc/cron.d:
it treats the files in /etc/cron.d as in the same way as the
/etc/crontab file (they follow the special format of that file, i.e.
they include the user field). However, they are independent of
/etc/crontab: they do not, for example, inherit environment variable
settings from it. The intended purpose of this feature is to allow
packages that require finer control of their scheduling than the
/etc/cron.{daily,weekly,monthly} directories to add a crontab file to
/etc/cron.d. Such files should be named after the package that supplies
them. Files must conform to the same naming convention as used by run-
parts(8): they must consist solely of upper- and lower-case letters,
digits, underscores, and hyphens. If the -l option is specified, then
they must conform to the LSB namespace specification, exactly as in the
--lsbsysinit option in run-parts.
/var/spool/cron/
là một đặc sản của Linux (xem Tiêu chuẩn phân cấp tệp ) và vị trí có thể khác nhau trên các hệ thống khác với Debian hiện tại.