修改centos系统默认编辑器

Lear 2024-07-09 14:10:35
Categories: Tags:

修改centos系统默认编辑器

1.打开文件:
vim /etc/profile

2.添加命令:
export EDITOR=/bin/vim

export EDITOR=/bin/nano

3.执行命令:
source /etc/profile 或者 ./profile