I was just wondering - where do you usually put your shell scripts? or perl or python scripts for that matter?
Is /usr/local/scripts ok? or /opt ?
|
I was just wondering - where do you usually put your shell scripts? or perl or python scripts for that matter? Is /usr/local/scripts ok? or /opt ?
| |||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
I drop everything in $HOME/bin, and append it to my $PATH, by placing
in .bashrc. | |||
|
feedback
|
|
For system-wide use, I would put them in | |||
|
feedback
|
|
I have them in their own git repo. As soon as they are reasonably polished, I use a script to symlink them to | |||
|
feedback
|
|
I put them in a dedicated directory under /var/tmp for at least three reasons:
Of course, sometimes eager cleaning scripts wipe that directory off but I can easily reinstall it anyway. For packaged stuff, I always used /opt/ as it is a standard. /usr/local/bin has several pitfalls. | |||
|
feedback
|