简体   繁体   English

bash脚本位置的约定是什么?

[英]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个答案。

  1. scripts for root user root用户的脚本
  2. scripts for regular users 普通用户脚本

/usr/local/bin和root的/usr/local/sbin通常位于用户创建的打算在本地运行的脚本的位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM