linux shell脚本 可以全局使用

53 阅读1分钟

将脚本方到 /bin 下面

cp    /XXX/XXX.sh    /bin/YYY.sh

然后加上运行权限

chmod u+x /bin/YYY.sh

在这里插入图片描述