将Linux单独执行文件加入到系统环境变量里
修改 /etc/profile 文件,在文件末尾加上如下两行代码
PATH=$PATH:/usr/local/路径和执行文件
export PATH
最后执行命令 source /etc/profile 或执行点命令 ./profile 使其修改生效
修改 /etc/profile 文件,在文件末尾加上如下两行代码
PATH=$PATH:/usr/local/路径和执行文件
export PATH
最后执行命令 source /etc/profile 或执行点命令 ./profile 使其修改生效