在当前用户目录下新建.bash_profile文件,执行以下命令: vi .bash_profile 然后保存,输入命令 :wq 最后使命令生效,执行命令 source .bash_profile 相关文章: 2021-06-26 2022-12-23 2022-02-10 2022-01-09 2022-01-26 2021-11-27 2021-09-17