ubuntu一般人使用nano不习惯,修改下很简单,命令如下
root@host:~# select-editor
Select an editor. To change later, run ‘select-editor’.
1. /bin/ed
2. /bin/nano <—- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny
Choose 1-4 [2]:
选择的数字是“3”, /usr/bin/vim.basic。