温馨提示×

linux修改profile后如何生效

小亿
175
2023-11-02 19:25:22
栏目: 智能运维

要使对.profile文件的更改生效,您可以执行以下步骤之一:

  1. 使用source命令执行.profile文件:

    source ~/.profile
    
  2. 使用点操作符执行.profile文件:

    . ~/.profile
    

这两种方法都会重新加载.profile文件中的环境变量和其他配置。

0