第一步查看/etc/profile:
第二步修改 /root/.bash_profile:
末尾添加命令的路径
第三步 shell脚本修改:
脚本中添加内容如下:
#!/bin/bash
. /etc/profile
. /root/.bash_profile
第一步查看/etc/profile:
第二步修改 /root/.bash_profile:
末尾添加命令的路径
第三步 shell脚本修改:
脚本中添加内容如下:
#!/bin/bash
. /etc/profile
. /root/.bash_profile