Where can (should) I put my (bash) script so that it can be used (forever) by terminal or by a direct command: Alt+F2?
I know there is
/bindirectories but when should I use between them?
Where should I put my script?
Don't use these directories:
Leave them for package-managed executables.
If you need the script for one user, waltinator's answer is fine.
If you need the script for all users on your system (but you can also use this for one user), stick it in
It depends on who will use your script:
That way you have your own scripts separated from the distribution-provided binaries.
You should put your script under
When the system is looking for the command you typed, it will look in each directory of