[root@localhost test]# export AUTHOR=brady
[root@localhost test]# echo $AUTHOR
brady
[root@localhost test]# env
查看命令为env
[root@localhost test]# echo $PATH /usr/local/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin [root@localhost test]# linux 默认可执行文件查找目录 [root@localhost test]# PATH="$PATH":/root [root@localhost test]# echo $PATH /usr/local/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin:/root [root@localhost test]# 临时生效 vim /etc/profile export PATH="$PATH":/root