ubuntu 执行定时任务crontab -e 无法输入的问题

界面显示

GNU nano 4.8 /tmp/crontab.l0A1HJ/crontab

Edit this file to introduce tasks to be run by cron.

Each task to run has to be defined through a single line

indicating with different fields when the task will be run

and what command to run for the task

To define the time you can provide concrete values for

minute (m), hour (h), day of month (dom), month (mon),

and day of week (dow) or use '*' in these fields (for 'any').

Notice that tasks will be started based on the cron's system

daemon's notion of time and timezones.

Output of the crontab jobs (including errors) is sent through

email to the user the crontab file belongs to (unless redirected).

For example, you can run a backup of all your user accounts

at 5 a.m every week with:

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

For more information see the manual pages of crontab(5) and cron(8)

m h dom mon dow command

解决办法

先退出当前界面 ctrl+x

运行命令

我选择的2 ,选完按回车即可

复制代码
select-editor
相关推荐
gfanbei1 天前
ARM V8 Cortex R52 上电运行在什么状态?— Deepseek 解答
linux·arm开发·嵌入式硬件
liu****1 天前
14.日志封装和线程池封装
linux·开发语言·c++
云动雨颤1 天前
访问宝塔面板安全入口404?SSH命令轻松解决
linux·运维·安全
NPE~1 天前
[Linux命令分享]日志查看 — — less
linux·运维·less·常用命令·日志查看
赖small强1 天前
Linux 系统调用在 ARM 上的实现与工作机制
linux·系统调用·内核态·用户态·上下文切换
大锦终1 天前
【Linux】网络层与数据链路层中重点介绍
linux·运维·服务器·网络
lht6319356121 天前
从Windows通过XRDP远程访问和控制银河麒麟 v10服务器
linux·运维·服务器·windows
3DVisionary1 天前
从手动到智能:XTOM-STATION自动化检测中心在复杂曲面零件全尺寸检测中的应用
运维·自动化·自动驾驶·工业自动化·质量控制·自动化3d测量·复杂零件检测
qiudaorendao1 天前
作业11.9
linux·服务器·apache
阿豪学编程1 天前
环境变量与程序地址空间
linux·运维·windows