Ubuntu 如何把.sh 文件添加快速启动

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

猜你喜欢

转载自blog.csdn.net/guanxunmeng8928/article/details/111250841