Where should I put my script?
-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World
--
Chapters
00:00 Question
00:26 Accepted answer (Score 71)
01:08 Thank you
--
Full question
https://superuser.com/questions/185184/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ubuntu #filesystems
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World
--
Chapters
00:00 Question
00:26 Accepted answer (Score 71)
01:08 Thank you
--
Full question
https://superuser.com/questions/185184/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ubuntu #filesystems
#avk47
ACCEPTED ANSWER
Score 70
A Google search for "Linux file system hierarchy" will turn up several documents, including this one.
Where you put your script depends on who the intended user is. If it is just you, put it in ~/bin
and make sure ~/bin
is in your PATH
. If any user on the system should be able to run the script, put it in /usr/local/bin
.
Don't put scripts you write yourself in /bin
or /usr/bin
. Those directories are intended for programs managed by the operating system.