Best Answer: Where Do I Put Scripts in Ubuntu?
Contents 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...
Contents
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 .
Where do I put custom scripts in Ubuntu?
You could place the scripts in /opt/bin and add the location to the PATH. There are several places you could put these, typically I place them in /opt/ and update PATH for each user (or globally in /etc/bash.
Must Read
Where do you put your scripts?
1 Answer
- If your scripts are intended to run by a single user you can place them in ~/bin.
- If your scripts are system-wide you can probably place them in /usr/local/bin.