Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
$PATH
Kim Schlesinger
November 20, 2018
Technology
0
15
$PATH
A lightning talk breaking down the $PATH variable.
Kim Schlesinger
November 20, 2018
Tweet
Share
More Decks by Kim Schlesinger
See All by Kim Schlesinger
kimschles
0
58
kimschles
0
32
kimschles
0
180
kimschles
0
39
kimschles
0
14
kimschles
0
31
Other Decks in Technology
See All in Technology
nkjzm
1
830
kanaugust
PRO
0
160
viva_tweet_x
5
2.6k
ocise
0
130
kakka
0
3.4k
clustervr
0
200
bufferings
2
3k
yuyaabo
0
250
110y
3
690
masakick
0
120
tsuyo
0
180
sasakendayo
2
360
Featured
See All Featured
carmenhchung
26
1.3k
robhawkes
52
2.8k
tanoku
86
8.5k
chriscoyier
145
19k
bkeepers
52
4.1k
swwweet
206
6.8k
ddemaree
274
31k
holman
448
130k
imathis
478
150k
tenderlove
52
3.4k
davidbonilla
69
3.5k
deanohume
295
27k
Transcript
⚡ $PATH kimschles 1
! echo $PATH kimschles 2
/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
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin kimschles 4
Editing $PATH kimschles 5
Permanent Change Add to .bashrc or right from the command
line. export PATH=$PATH:/Library/Frameworks/Python.framework/ Versions/3.5/bin kimschles 6
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
Recapitulation • Environment Variable • 1 long string • Colon-separated
• Is a path to executable code invoked through text commands kimschles 8
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
Resources • How to Access and Edit Path • The
/bin Directory kimschles 10
kimschlesinger.com hirediversity.us kimschles 11