Linux shell script can be used globally

Place the script under /bin

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

Then add run permissions

chmod u+x /bin/YYY.sh

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44578029/article/details/111630251