PATH Variable (Mac)

  Рет қаралды 16,535

Susan B.

Susan B.

Күн бұрын

When you run a command for a program in command line, it looks for the corresponding executable files using the directories listed in your computer or server’s PATH variable. The PATH variable is one of many Environment Variables your system uses.
Given this, when you add a new command line program to your computer, you have to add its directory to your PATH variable.
In the following instructions, I will demonstrate this process by adding the PHP executable that comes with XAMPP to my PATH, but the steps would be the same for whatever program you’re trying to configure.
NOTES: codewithsusan.com/notes/path-...
=== CHAPTERS ===
00:00 Introduction
00:40 See current contents of the PATH variable
01:17 Adding a new path
02:44 Test it worked

Пікірлер: 122
@mattstroud6759
@mattstroud6759 Жыл бұрын
Best PATH variable on Mac explanation I have seen on both KZfaq and Google searches.
@juliammassing
@juliammassing 19 күн бұрын
thank you for the very straightforward content on the subject
@jacquelineroronoad2254
@jacquelineroronoad2254 Жыл бұрын
Thank you! This saves me big time! I'm a self-tough engineer, so I constantly find myself in a vulnerable position when it comes to environment settings.
@nikkim7856
@nikkim7856 2 ай бұрын
Thanks Susan! I've tried so many different solutions but your's finally worked out!! Concise and easy explanation. Really appreciate!!
@H0ldThat
@H0ldThat 5 ай бұрын
Susan, you're a legend. You saved my butt. I hope the world is kind to you for the rest of your life :)
@Tstanek
@Tstanek Жыл бұрын
Thx a lot! very useful tutorial on PATH, made my commands finally run after struggling:)
@MadSecheDev
@MadSecheDev Жыл бұрын
Subbed for the clear informations & the fact that you actually made notes to follow. New to this channel and gonna certainly have it under my radar :)
@codewithsusan
@codewithsusan Жыл бұрын
Thanks MadSeche - appreciate the note and the sub : )
@cliffjpm
@cliffjpm 8 ай бұрын
This video was really helpful. I messed up my PATH when installing flutter and this helped me to solve my issue. Thanks!
@taylorferguson5334
@taylorferguson5334 9 ай бұрын
Cheers... I forgot most of this content so this was an excellent refresher
@waizmusic6552
@waizmusic6552 Жыл бұрын
THANKYOU SO MUCH YOU MAKE IT SO EASY FOR ME TO UNDERSTAND AND TO ADD THE A NEW PATH
@evaristekamwa
@evaristekamwa Жыл бұрын
Going to try this out on my next project - thanks!
@user-on6wo1en5r
@user-on6wo1en5r 3 ай бұрын
Hy Susan, i really love this specific tutorial that you did. I've been looking for this for about 2 weeks and it turned out to be the easter egg i needed today. Thank you.😘
@codewithsusan
@codewithsusan 3 ай бұрын
You're welcome, glad you found it! :)
@jonathonandoh3558
@jonathonandoh3558 Жыл бұрын
Great work , very easy to follow.
@johnstone_zek
@johnstone_zek 10 ай бұрын
Thanks for your notes !
@xXHelsingGamingXx
@xXHelsingGamingXx Жыл бұрын
Amazing, I am referring this for my path editing
@bannamebrathu1504
@bannamebrathu1504 Жыл бұрын
Great video Susan, extremely helpful!
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@sequelman8997
@sequelman8997 Жыл бұрын
Thanks for the great video and explanation of PATH.
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@goatloading
@goatloading 5 ай бұрын
Thank you so much Susan, you helped me. 🙏
@akuacatastaire4174
@akuacatastaire4174 5 ай бұрын
This was really well done. Excellent breakdown.
@codewithsusan
@codewithsusan 5 ай бұрын
Thanks! :)
@user-no1bg3vq4y
@user-no1bg3vq4y Жыл бұрын
great work susan
@trentanderson8
@trentanderson8 6 ай бұрын
Thank-you so much! That was so helpful!
@beatriz5449
@beatriz5449 Жыл бұрын
Thank you so much Susan!!!! Great video!!
@codewithsusan
@codewithsusan Жыл бұрын
You are so welcome!
@FredBHPTU
@FredBHPTU Жыл бұрын
Ótimo conteúdo. Obrigado!
@hotcoke77
@hotcoke77 9 ай бұрын
So helpful! Thanks!
@otmbct
@otmbct Жыл бұрын
It's really very helpful! Thank you so much!
@alfik987
@alfik987 Жыл бұрын
Very helpful! Thank you :)
@MissNkini
@MissNkini Жыл бұрын
Great work!!
@SatishG777
@SatishG777 Жыл бұрын
very helpful, Thank you.
@ehsanabbasi9405
@ehsanabbasi9405 Жыл бұрын
Great explanation. Tnx alot 👌🏻
@hibana4826
@hibana4826 Жыл бұрын
me gusto el video, hace rato llevo tratando de saber por que no podia ejecutar php en la terminal para descargar composer hasta que encontre este video que explica muy bien, un video de gran ayuda, gracias
@codewithsusan
@codewithsusan Жыл бұрын
De nada - Gracias por ver
@davinascimento7942
@davinascimento7942 9 ай бұрын
Excelente conteúdo!
@anneray433
@anneray433 Жыл бұрын
Nicely explained
@thecoolpanda
@thecoolpanda Жыл бұрын
Nice video, thanks.
@shofwanahmadsyihab929
@shofwanahmadsyihab929 Жыл бұрын
this is really helpful, understanding command really thoughtful :)
@codewithsusan
@codewithsusan Жыл бұрын
Thanks!
@PlaneDr432
@PlaneDr432 Жыл бұрын
Appreciate it, new subscriber!
@brightamankwatia5730
@brightamankwatia5730 Жыл бұрын
Great work
@reffrim
@reffrim Жыл бұрын
Nice one! Thanks
@enricozimmermann1129
@enricozimmermann1129 8 ай бұрын
nicely documented
@andyzimmerman3615
@andyzimmerman3615 Жыл бұрын
Thank you for this
@donanderson47
@donanderson47 8 ай бұрын
great vid, thank you
@natsuztube
@natsuztube Жыл бұрын
Following your instruction
@Bluefox1978
@Bluefox1978 6 ай бұрын
Thx Susan! Finally I found a short and concise introduction on how to alter path so I can get on with learning Python
@codewithsusan
@codewithsusan 6 ай бұрын
np! Have fun learning Python - it's a great language.
@Bluefox1978
@Bluefox1978 6 ай бұрын
@@codewithsusan WOW! What a fight I just had with my system! 😵‍💫 But now Python IDLE works inside my Terminal! 😍 Qurious question does it matter what type of shell I use? For reasons unknown to me my system was configured to zsh and previously it was ksh and now I have changed back again to BASH. Any thoughts to think of this?
@codewithsusan
@codewithsusan 6 ай бұрын
For most situations, either of those shells (zsh, ksh, bash) get the job done, and they all work very similarly. I use zsh on my Mac as that's the default they use now (it used to be bash). But all the servers I work on use bash by default.
@Bluefox1978
@Bluefox1978 6 ай бұрын
@@codewithsusan the reason why I’m asking is when I type “which Python“ it returns with an empty command prompt, just nothing, and I can type new command despite i have Python 3.11 and 3.12 installed
@hankanguyenova1672
@hankanguyenova1672 Жыл бұрын
Thank you so much, you just saved my day!
@codewithsusan
@codewithsusan Жыл бұрын
Glad to hear it!
@subhashmadineni9778
@subhashmadineni9778 Жыл бұрын
great stuff
@markengebritson6319
@markengebritson6319 Жыл бұрын
Great video. I subscribed!😊
@codewithsusan
@codewithsusan Жыл бұрын
Appreciate it Mark!
@jingchuanliang2385
@jingchuanliang2385 9 ай бұрын
very helpful
@asketsystem9461
@asketsystem9461 Жыл бұрын
Great vid, keep it up, ok
@MrKaurT
@MrKaurT Жыл бұрын
ThankYouuu 😇
@RLAPERU2
@RLAPERU2 Жыл бұрын
Buen contenido
@user-mv6ib3lb2q
@user-mv6ib3lb2q 10 ай бұрын
Thank you
@eliasfelizola3317
@eliasfelizola3317 8 ай бұрын
Subscribed!
@OnsAttia
@OnsAttia Жыл бұрын
Thanks!
@danielecannavo4682
@danielecannavo4682 Жыл бұрын
so good
@mukeshgollen7204
@mukeshgollen7204 9 ай бұрын
thank you
@Questionliz
@Questionliz Жыл бұрын
thanka :)
@ibrahim_zebary
@ibrahim_zebary 4 ай бұрын
Thanks
@paulybonz5928
@paulybonz5928 10 ай бұрын
thanks!
@OsmanAfifi
@OsmanAfifi Жыл бұрын
THANKS
@catalpamaple486
@catalpamaple486 Жыл бұрын
thank you!
@codewithsusan
@codewithsusan Жыл бұрын
You're welcome!
@user-hg2ks2jl4z
@user-hg2ks2jl4z Жыл бұрын
Thx
@utkarshjagtap1769
@utkarshjagtap1769 Жыл бұрын
Let’s go susan
@abhiramkuruva9840
@abhiramkuruva9840 Жыл бұрын
thanks
@elijahgugliuzza7867
@elijahgugliuzza7867 11 ай бұрын
nice!
@greyvoidbloom
@greyvoidbloom Жыл бұрын
tysm
@MuratFirtina
@MuratFirtina 9 ай бұрын
Thanx
@036_komang_adi_satya_mahag6
@036_komang_adi_satya_mahag6 Жыл бұрын
Subscribed
@wizard8845
@wizard8845 Жыл бұрын
Nice
@LeOonardo170
@LeOonardo170 Жыл бұрын
hi! thank for help me
@nishantsoman6691
@nishantsoman6691 Жыл бұрын
its great
@rumahsuksesbersama
@rumahsuksesbersama Жыл бұрын
GOOODDDD
@codewithsusan
@codewithsusan Жыл бұрын
Thankkkkkkks :)
@garnetssxc737
@garnetssxc737 Жыл бұрын
thx
@caliskantahir
@caliskantahir 10 ай бұрын
Great
@user-nv5hi8yy2u
@user-nv5hi8yy2u 10 ай бұрын
nice
@Tony.Nguyen137
@Tony.Nguyen137 2 ай бұрын
can I add to the bin folder of -ls programm my own programm?
@lavenircyrille2626
@lavenircyrille2626 Жыл бұрын
c est cool j ai toujours des problee de path avec mon nouveau mac
@bryanpauquette
@bryanpauquette 8 ай бұрын
subscribed
@konathamhemanth8796
@konathamhemanth8796 2 жыл бұрын
Subscribed......
@codewithsusan
@codewithsusan 2 жыл бұрын
Thanks Konatham!
@dimasardhiant
@dimasardhiant Жыл бұрын
nicee
@user-pm2fj8ol1q
@user-pm2fj8ol1q 8 ай бұрын
ive added my path and can see it once i reload my terminal but when i attempt to double check using the which php command it says php not found. any suggestions?
@codewithsusan
@codewithsusan 8 ай бұрын
Double check the path you added is valid and a php executable exists there. To do this, try just changing into that directory, pasting in the directory path *exactly* as you put it in your path. Example: > cd /Applications/XAMPP/xamppfiles/bin/ If you are able to successfully change into that path, you confirm it contains an instance of PHP exists within that directory with this command: > ./php --version
@petterp9843
@petterp9843 Жыл бұрын
cool
@vip_zolo
@vip_zolo 4 ай бұрын
I have added the Xampp path but still which php showing /usr/bin/php, and php version is still old as 7.3.29. Please help me to change that php version
@codewithsusan
@codewithsusan 4 ай бұрын
Can you confirm you restarted your command line program after editing your path?
@olasojiopa1355
@olasojiopa1355 9 ай бұрын
Hopefully it works
@CrisVasquez-jy3kz
@CrisVasquez-jy3kz Жыл бұрын
trying out now lol
@jasonmestrits4463
@jasonmestrits4463 Жыл бұрын
+1
@sunnykumarsingh4265
@sunnykumarsingh4265 11 ай бұрын
new thing
@user-nh7sq9mm6p
@user-nh7sq9mm6p Жыл бұрын
1
@nishkp99
@nishkp99 Жыл бұрын
for code
@agam9963
@agam9963 Жыл бұрын
hi
@MAELOfficial
@MAELOfficial Жыл бұрын
hiii
@chisonththarmapalan5458
@chisonththarmapalan5458 Жыл бұрын
o
@dominikbach3983
@dominikbach3983 Жыл бұрын
hey
@codewithsusan
@codewithsusan Жыл бұрын
hi
@laschoueb1975
@laschoueb1975 Жыл бұрын
pop
@kickzNkardz
@kickzNkardz Жыл бұрын
djis
@user-wd8in1in5c
@user-wd8in1in5c Жыл бұрын
dwadwad
@valdrinveselaj560
@valdrinveselaj560 Жыл бұрын
a
@user-nv5hi8yy2u
@user-nv5hi8yy2u 9 ай бұрын
his
@staskamenetskyi8014
@staskamenetskyi8014 Жыл бұрын
Very helpful! Thank you :)
@bpolzin22
@bpolzin22 Жыл бұрын
Thanks!
@user-ws3jr4eh2n
@user-ws3jr4eh2n Жыл бұрын
Thanks
@francescofreddi4374
@francescofreddi4374 Жыл бұрын
Subscribed
How to Install Homebrew on Mac | How to Install brew on macOS
9:02
ProgrammingKnowledge
Рет қаралды 20 М.
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 1 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 52 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
What are Environment Variables, and how do I use them? (get,set)
4:49
50 macOS Tips and Tricks Using Terminal (the last one is CRAZY!)
11:11
Network Ports Explained
10:33
PowerCert Animated Videos
Рет қаралды 1,6 МЛН
Setting Up Permanent Environment Variables on macOS
1:49
GetDevOpsReady
Рет қаралды 319
What is $PATH on a Linux Shell? (The Linux Crash Course Series)
21:52
Learn Linux TV
Рет қаралды 32 М.
MySQL with Laravel Herd on Windows (without upgrading to Pro)
14:08
what is PATH? (beginner - intermediate) anthony explains #070
5:46
anthonywritescode
Рет қаралды 10 М.
How I Setup Neovim To Make It AMAZING in 2024: The Ultimate Guide
1:26:35
Josean Martinez
Рет қаралды 180 М.
Setting Environment Variables on Mac
3:58
DEV ANGEL
Рет қаралды 42 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 52 МЛН