Run It from Anywhere: ~/bin on Your PATH

Copy a finished script into ~/bin without its .sh, put ~/bin on your PATH, and it runs by name from any folder like any other command, as long as the paths inside it work from anywhere and its name isn't already taken, which type checks.

Updated

Cheat sheet for the lesson Run It from Anywhere: ~/bin on Your PATH: Copy a finished script into ~/bin without its .sh, put ~/bin on your PATH, and it runs by name from any folder like any other command, as long as the paths inside it work from anywhere and its name isn't already taken, which type…
Category
Bash
Level
Apprentice
Tags
bin, File Extension, linux, path, shell-builtin, unix