简体   繁体   中英

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. Which?

I imagine 2 kinds of scripts so I am asking for 2 answers, please.

  1. scripts for root user
  2. scripts for regular users

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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