Upgrade to Pro — share decks privately, control downloads, hide ads and more …

$PATH

 $PATH

A lightning talk breaking down the $PATH variable.

Kim Schlesinger

November 20, 2018
Tweet

More Decks by Kim Schlesinger

Other Decks in Technology

Transcript

  1. /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin • Environment Variable • 1 long string • Colon-separated

    • Is a path to executable code invoked through text commands kimschles 3
  2. Permanent Change Add to .bashrc or right from the command

    line. export PATH=$PATH:/Library/Frameworks/Python.framework/ Versions/3.5/bin kimschles 6
  3. Temporary Change From the command line. Only lasts in current

    shell (no export) PATH=$PATH:/Library/Frameworks/Python.framework/Versions/ 3.5/bin kimschles 7
  4. Recapitulation • Environment Variable • 1 long string • Colon-separated

    • Is a path to executable code invoked through text commands kimschles 8
  5. Recapitulation • See it with echo $PATH • Change it

    with export: export PATH=$PATH:/Library/Frameworks/new/thing • Try out a new path by taking out export: PATH=$PATH:/Library/Frameworks/new/thing kimschles 9