# 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.

![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…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a5c7dc9f29ee492ab4a4e85c3a3d0725.webp)

- Category: Bash
- Level: Apprentice
- Tags: bin, File Extension, linux, path, shell-builtin, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-scripts-on-your-path-cheat-sheet
