使用快捷按键Ctrl + Alt + T 打开命令窗口
输入查看命令
cat /etc/profile
输入编辑命令
vi /etc/profile
不修改
按 Esc 键,输入 :q!
修改保存
按 Esc 键,输入:wq!
环境文件立即生效
source /etc/profile