1.gedit ~/.bashrc
2.在bashrc中, export PATH=软件.sh的绝对路径的上一层,一般是bin文件: P A T H e x p o r t P A T H = / h o m e / T e s t / b i n : {PATH} export PATH=/home/Test/bin: PATHexportPATH=/home/Test/bin:{PATH}
3.source ~/.bashrc
Ubuntu16.04
问题:Command ‘ls’ is available in ‘/bin/ls’
解决办法:export PATH=/usr/bin:/bin