Welcome to Ubuntu 11.04 (GNU/Linux 2.6.32-042stab037.1 x86_64) user@server:~$crontab -e no crontab for user - using an empty one Select an editor. To change later,run 'select-editor'. 1. /bin/ed 2. /bin/nano <---- easiest 3. /usr/bin/mcedit 4. /usr/bin/vim.basic Choose 1-4 [2]: 2 crontab: "/usr/bin/sensible-editor" killed; signal 9 (no core dumped) Received SIGHUP or SIGTERM Error writing /tmp/crontab.qcuMPr/crontab.save: No such file or directory Buffer not written to /tmp/crontab.qcuMPr/crontab.save: No such file or directory
为什么会这样?
/usr/bin/sensible-editor只是一个帮助你选择编辑器的包装器.
原文链接:https://www.f2er.com/ubuntu/348067.html这样做会发生什么?
export EDITOR=nano crontab -e
/usr/bin/nano是否存在?