Skip to content

Instantly share code, notes, and snippets.

@gbarreiro
Last active December 6, 2020 20:55
Show Gist options
  • Save gbarreiro/40aecf8c8eca8df479ffdde0fcc8f07a to your computer and use it in GitHub Desktop.
Save gbarreiro/40aecf8c8eca8df479ffdde0fcc8f07a to your computer and use it in GitHub Desktop.
Bash cheatsheet: path
export PATH=$PATH:/home/john/myprogram # add the directory /home/john/myprogram to the path
which nano # shows where is the executable of "nano" located
whereis nano # shows where are the executable, manuals, source code, etc. of "nano"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment