Slide 1

Slide 1 text

⚡ $PATH kimschles 1

Slide 2

Slide 2 text

! echo $PATH kimschles 2

Slide 3

Slide 3 text

/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

Slide 4

Slide 4 text

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin kimschles 4

Slide 5

Slide 5 text

Editing $PATH kimschles 5

Slide 6

Slide 6 text

Permanent Change Add to .bashrc or right from the command line. export PATH=$PATH:/Library/Frameworks/Python.framework/ Versions/3.5/bin kimschles 6

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Recapitulation • Environment Variable • 1 long string • Colon-separated • Is a path to executable code invoked through text commands kimschles 8

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Resources • How to Access and Edit Path • The /bin Directory kimschles 10

Slide 11

Slide 11 text

kimschlesinger.com hirediversity.us kimschles 11