what is the convention for the location of my bash scripts?
-
12-10-2019 - |
Pergunta
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.
- scripts for root user
- scripts for regular users
Solução
/usr/local/bin
for users and /usr/local/sbin
for root is generally the place where user-created scripts meant to be run locally are located
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow