Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Created July 27, 2021 17:52
Show Gist options
  • Save wilmoore/bc66cde77cec57f2ae58db323c567718 to your computer and use it in GitHub Desktop.
Save wilmoore/bc66cde77cec57f2ae58db323c567718 to your computer and use it in GitHub Desktop.
Understanding $PATH

Understanding $PATH

❯ Made with 💜 by realpolyglot.com

If you don't understand how paths work in unix, then you'll have a hard time with everything.

  • ./ means this directory
  • ./../ means this directory, then down one directory level like cd ..
  • ./src/bin/cli

Those are all relative paths. Where things get tricky is intrucing inferred paths. Basically, they are invisible. When you want to invoke a program, there is a list of directories that are searched in order for the binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment