How to turn your scripts into commands in Linux and Mac command lines / terminals
First create a
bin folder in under your user.
To see where we are we use
pwd and to see where is our user folder we can use
and then switch to your userfolder (if you just opened the console you should be there already). The command
cd with no parameters bring you to the home folder, otherwise you can use
The folder does not have to be named “bin”, it can be named whatever you want. I name my folders for scripts “bin” as the systems usually use a folder named “bin” for executables.