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
相关推荐
君穆南1 小时前
基于 NFS 与 Rsync 实现跨服务器 Seafile 数据平滑迁移实战
linux·运维·git
bloglin999991 小时前
scp、rsync远程文件同步
linux·运维·服务器
迦南的迦 亚索的索1 小时前
LINUX环境
linux·运维·服务器
yuanjj881 小时前
linux下调试域格CLM920 NC5等9x07平台模块 QMI拨号
linux·运维·服务器
IMPYLH1 小时前
Linux 的 printenv 命令
linux·运维·服务器·bash
SilentSamsara2 小时前
SSH 远程管理:密钥登录 + 隧道转发,一次性配置好
linux·运维·服务器·ubuntu·centos·ssh
LN花开富贵2 小时前
【ROS】鱼香ROS2学习笔记一
linux·笔记·python·学习·嵌入式·ros·agv
疏星浅月2 小时前
数据对齐的底层原理与性能优化
linux
Jurio.2 小时前
本机开发 + 多机执行的极简远端运行工具
linux·git·python·github·远程工作
阿巴~阿巴~3 小时前
Git版本控制完全指南:从入门到实战(简单版)
linux·服务器·git