查看环境变量:
# env
追加:
# PATH=$PATH:/home/cq/bin
查看当前shell中有效的环境变量:
# set
当前shell的进程ID:
# echo $$
在/etc/profile中添加 exprot PATH=$PATH:/home/cq/bin
然后source /etc/profile
查看环境变量:
# env
追加:
# PATH=$PATH:/home/cq/bin
查看当前shell中有效的环境变量:
# set
当前shell的进程ID:
# echo $$
在/etc/profile中添加 exprot PATH=$PATH:/home/cq/bin
然后source /etc/profile