← 返回命令列表

Linux command

crond 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

crond

Example

crond -n

Example

crond -s

Example

crond -p

Example

crond -P

Example

crond -c

说明

crond is a daemon that executes scheduled commands from crontab files. It starts automatically at boot and checks crontab files for jobs that need to run each minute. It monitors /var/spool/cron/crontabs (user crontabs), /etc/crontab (system crontab), and /etc/cron.d/ (system cronjobs).

参数

-n
Run in foreground (useful for init systems)
-s
Send job output to syslog instead of email
-m COMMAND
Specify custom mail command or disable with "off"
-p
Override default limitations and accept custom crontabs
-P
Inherit PATH from environment instead of setting default
-c
Enable clustering support for shared crontabs
-h
Display help information
-V
Display version number

FAQ

What is the crond command used for?

crond is a daemon that executes scheduled commands from crontab files. It starts automatically at boot and checks crontab files for jobs that need to run each minute. It monitors /var/spool/cron/crontabs (user crontabs), /etc/crontab (system crontab), and /etc/cron.d/ (system cronjobs).

How do I run a basic crond example?

Run `crond` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n do in crond?

Run in foreground (useful for init systems)