修改 crontab默认编辑器nano为Vi

来源:互联网 发布:mac地址能不能修改 编辑:程序博客网 时间:2024/03/28 18:20

 update-alternatives --config editor 

选择/usr/bin/vim.tiny 

然后通过crontab -u root -e添加cron命令 如*/1 * * * * ls >> /tmp/ls.txt

直接通过编辑/etc/crontab不行,不知道这个原因是什么。

0 0