crontab -e root 可以开始编辑crontab 定时任务。 添加要执行的定时任务 set -o vi set -o vi 再用esc+K键就可以使用上一条指令了 esc+k esc+j 上下翻