Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怀疑约定是将我的 bash 脚本留在默认 $PATH 的目录之一中。哪个?
我想像 2 种脚本,所以我要求 2 个答案,拜托。
/usr/local/bin对于用户和/usr/local/sbinroot 通常是用户创建的要在本地运行的脚本所在的位置
/usr/local/bin
/usr/local/sbin