[英]what is the convention for the location of my bash scripts?
I suspect the convention is to leave my bash scripts in one of the directories of the default $PATH. 我怀疑惯例是将bash脚本保留在默认$ PATH的目录之一中。 Which?
哪一个?
I imagine 2 kinds of scripts so I am asking for 2 answers, please. 我想象2种脚本,所以请问2个答案。
/usr/local/bin
和root的/usr/local/sbin
通常位于用户创建的打算在本地运行的脚本的位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.