Question

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
Was it helpful?

Solution

/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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top