Holy, I'm a 1st year programming student and you wouldn't believe how hard it was to find a comprehensive, basic guide to Environment variables. Thanks for sharing!
@JacobSorber
2 жыл бұрын
You're very welcome! Glad it helped.
@cadencetennant3303
2 жыл бұрын
I'm in my third year now...first time I've ever seen something about this!
@neerajkale
3 жыл бұрын
I wasn't aware of char **envp for almost 8 years now, until I saw this video. Actually there is always something new I learn in every video of this channel.
@JacobSorber
3 жыл бұрын
Yeah, I had the same experience. We don't use it all the time and so it just sits there waiting to be discovered. Glad the videos are helpful.
@GAMarine137
10 күн бұрын
Refreshing myself after many years away. Glad to know about envp as well.
@noideaofhowcallme
3 жыл бұрын
Finally a very good explanation of WHAT Environment Variables are! Thank you!
@JacobSorber
3 жыл бұрын
You are welcome! Glad I could help.
@gotem370
3 жыл бұрын
That went over my head pretty fast
@michaelbelfast1
6 ай бұрын
You are very good at explaining - a skill/gift not every teacher has. Excellent! Thanks.
@anonymous-ds3mc
4 жыл бұрын
So, they are just variables containing basic system info that any program can access?
@JacobSorber
4 жыл бұрын
Basically, yeah.
@tymothylim6550
3 жыл бұрын
Thank you for the video Jacob! It was simple and easy to understand. This helps me to understand the purpose of environment variables better!
@scottspa74
4 жыл бұрын
It was 4 steps to get to environment on windows, but to be fair, you can open CMD and type 'set' to see all variables, or even just 'path' to see just the path. I'm sure you know that, as you clearly have way more knowledge about this than I do, probably just taking a shot at MS, which I don't blame you for at all. Definitely subbing to your channel. I just began CIS 125 at school, and it's all about command line and VMware, and I have no idea lol. My only experience with it is a little with ADB and fastboot in the Android SDK years ago. Can't wait for more vids.
@ritasjourney
Жыл бұрын
Thank you for this. His making an easy process difficult was causing me some anguish.
@marcioandreyoliveira
Жыл бұрын
On MS Windows, open the command prompt "cmd" and type set then press the ENTER key and you will see all the environment variables.
@igormicovic
5 ай бұрын
Bro I knew about env variables for 2-3 years now, but only now is that I learned how they really work. I would really love your video on how they can be useful tho :P :D
@imaneelmohalil5335
2 жыл бұрын
Thank you so much!! I looked everywhere for a good and clear explanation and yours was the best one around. You rock!
@miserablebrian
4 жыл бұрын
Literally found my way to this video because I found the Environment Variable button while just clicking through system buttons for the heck of it (not changing anything anywhere obviously) and I literally still have absolutely 0 clue what these things are. What is a variable? What is an Environment Variable? I feel like you just showed how to do a bunch of stuff but never said what an Environment Variable actually is.
@JacobSorber
4 жыл бұрын
I'm sorry that wasn't clear. It's just a variable that is set in the "environment". The "environment" is simply the set of variables that are passed to a program when it runs.
@TheSamuelBauter
4 жыл бұрын
Thanks man this was really helpful! Esp. The PATH variable explanation.
@flippert0
9 ай бұрын
Opening a "CMD" window on Windows and typing "set" also gives you the environment, so not that many clicks involved. But in general I agree that Windows tries to hide the internal stuff from the user.
@breemudi
2 жыл бұрын
The intro was sick! 😃
@noeelreeds
9 ай бұрын
your videos are life man
@noeelreeds
19 күн бұрын
nine months later, env variables are a secure way of storing credentials
@tranminhhieu9492
5 жыл бұрын
Quality content! Very detailed but simplified explanation
@JacobSorber
4 жыл бұрын
Thanks.
@prashantsingh1096
4 жыл бұрын
Your short videos are extremely helpful . Thank You !!!
@MegaMiir
3 жыл бұрын
No idea these existed. Very sweet.
@GladwinNewton
6 күн бұрын
Thanks man. really helpful
@gauravshinde6306
4 жыл бұрын
You had me at YAASSQUEEN. Had to sub.
@HominisLupis
Жыл бұрын
Jacob, you're the man. That's it. That's the comment.
@Joshua-xr9ux
Жыл бұрын
What coding editor are you using? It look incredibly neat.
@psykodiak5333
5 жыл бұрын
I'm a Carolina fan myself, but I GUESS I could like and subscribe. Thanks for the info. It really helped.
@JacobSorber
4 жыл бұрын
That's very big of you. Thanks. I'm glad you enjoyed it.
@loc4725
Жыл бұрын
So how does Clang / GCC know how many arguments are passed to your main() function? I don't immediately see varargs being used so am I correct in thinking that either your program looks at additional registers or the loader checks the ELF header for the function signiture to use?
@beepbeepimasheep237beepbee3
3 жыл бұрын
Whenever I change variables, it feels like: "Jimmy, don't."
@Power_On_Technology
6 ай бұрын
you can see your env variables also by typing >set into cmd
@princeardalan
9 ай бұрын
Thank you.
@voicedrifter
5 жыл бұрын
Thanks for the nice succinct explanation :)
@yt_bharat
Жыл бұрын
That was really helpful
@mikeab3700
8 күн бұрын
to see your environment variables in Windows is so simple. just type set in the command prompt and hit enter.
@tusharsnn
2 жыл бұрын
if you are still listening to the comments after 3yrs, I have a doubt, how environ[i] is jumping to the next string, if its a char* then it should move by 1 byte ryt ? an int* moves by 4 bytes like so
@taranagnew436
2 жыл бұрын
do i use a enviroment for a app (on table) that can be as a second screen via wifi (address)?
@Tny2012
4 жыл бұрын
this guy is sweet and helpful, tnx a bunch !!! thumbs up
@gmailservice9945
3 жыл бұрын
Are these Enviroment variables a bash thing? I mean, are those variables specific to bash? Or they are just stored in a file that bash (and c programs) read from?
@jenkrash8122
2 жыл бұрын
how can i do yes/no switch for var in .bat? so every time i launch it it will change yes to no and no to yes and display the right parameter
@madhureshminoshi4272
5 жыл бұрын
Professor how do i improve my programming skills? Recently i learnt socket programming and i want to make a simple video chat program but i get stuck every now and then . I don't feel like i really understand everything that is going on in one go . Most programmers(fromstack overflow) seem to understand the ins and out very well.Do advise .Thank you .
@JacobSorber
5 жыл бұрын
Practice is definitely important. Also, I would start simple and make sure you understand all the pieces before moving on to something complicated. A video chat program seems like you might be trying too much too soon. What about a simple socket text chat program? Once you get that working, you can definitely extend it to send images and then video. Pace yourself. Don't worry about what others seem to know. Also, these might help. kzitem.info/news/bejne/q4-Jv3yKn4F3moo kzitem.info/news/bejne/sYeus217kZOmf6Q kzitem.info/news/bejne/zKB-qqKLo5OSnGk
@madhureshminoshi4272
5 жыл бұрын
@@JacobSorber Thanks professor. The videos you suggested helped a lot to fix my mindset.
@mikelemon5109
4 жыл бұрын
Hello Jacob, Realy love your videos they do stand out at least most other tutorials out there(realy coding for a few year not as a main job) and learn new things from each video from tipping the in depth meaning of things instead of letting students burn inside them to figure it out later but there's always that question in those videos when learning programming which is how did you learn it? where is the base info for how do you know there are 3 possible ways to do that or things like "this is how it is done"?
@JacobSorber
4 жыл бұрын
The short answer: 30 years, 3 degrees, lots of classes, 4 universities, 6 companies, tinkering, reading, teaching, researching, trying stuff, learning from my students and other developers, and often learning stuff the hard way. The long answer:.... That book wouldn't fit in this comment box, but one reason I make these videos is to try to make things a little easier for others.
@mikelemon5109
4 жыл бұрын
@Jacob Sorber aight sure can't argue with experience but just asking to find the most efficient way to learn about a new language or mcu probably using google but what are the common keywords to look for that the higher stage of programmers use to learn about it? Because I could spend a few months just getting started with something like blinking and understanding a cpu or how to program it...
@peterhayman
4 жыл бұрын
oorrrrrr: press windows button -> type "env" -> press enter
@mech653
Жыл бұрын
Also typing env in the command prompt works too.
@markdanielbriva6122
3 жыл бұрын
Tnx for this. Really helpful
@muzamilghafar1209
3 жыл бұрын
edit system variables, i get a window which gives only two options, variable and variable path..i want all options plz help
@mech653
Жыл бұрын
Also the env command works in Windows too.
@khaledhany
2 жыл бұрын
Nice video, I try to use the make command to compile source code but it says " fatal: unable to open makefile" any suggestions?
@user-vf6jp2th1h
10 ай бұрын
Environment, atmosphere is must, I'm searching for it, other wise we have to made it but here impossible
@HurtCrayon
2 жыл бұрын
Thanks
@guilhermelourenco6443
4 жыл бұрын
How can I check a programm's environment variables if it's in a remote server? I only have a netcat command
@adityasharma-ky3kf
2 жыл бұрын
In windows 7 8 there is not an option to add variable in path
@ThatOtherAndi
Жыл бұрын
Man great content and everything, really! Great information density and well explained overall. But you fly through everything way to fast. Some people are curious and want to take a more thourough look at stuff you show in the video, and even the best quick-pausers have a hard time keeping up with your pace xD please take your time!
@amarekhtyar3261
4 жыл бұрын
great video!!Do you have a channel for explaining C language
@natb007
3 жыл бұрын
Thank you so much!
@syedmohammadhussain7137
4 жыл бұрын
Jacob SORBER ,WHATS THE DIFFERNCE BETWEEN GE ENV AND SET ENV ??
@JacobSorber
4 жыл бұрын
getenv gets the value of an environment variable. setenv sets the value of an environment variable. man.openbsd.org/getenv.3
@atik7
5 жыл бұрын
How about "set" command on Windows?
@JacobSorber
5 жыл бұрын
I don't do much with windows, but it looks a lot like export. (ss64.com/nt/set.html)
@shekharmaela2308
5 жыл бұрын
@@JacobSorber Your link doesn't work for some reason, ss64.com/nt/set.html
@hugobarroca9538
5 жыл бұрын
@@JacobSorber If you write "set" alone in the command prompt, it will list you all the current environment variables, pretty much like env will. You can also use it to set a variable if you give it arguments.
@atastypineapple9296
3 жыл бұрын
If you're on windows just open command prompt and type in *set* and hit enter.
@user-zl8vb1gb8b
3 жыл бұрын
I would like to ask for permission. I use WRF model I tried to set env and it's can't . How do I solve this problem?
@kituraut8830
3 жыл бұрын
Word could not create work file, Check the temp environment variable - error what to do pls reply.
@itamath4338
4 жыл бұрын
the PATH var is the search path for executable commands, so I thought changing the PATH to something that doesn't exist (for instance, export PATH=blah) would make me unable to use any command (same as after I change it, it doesn't let me use 'ls'). but apparently, I can still use numerous commands, and I can still use 'export' and change it back. where are the executable files for these still-usable commands located? how come I can still use them when my search path is gibberish?
@KaranDoshicool
5 жыл бұрын
well explained
@Matias001998
3 жыл бұрын
Great video! keep the good work!
@andywang2483
4 жыл бұрын
Better than my professor
@david2am
4 жыл бұрын
Thanks!
@amrtcpp6203
4 жыл бұрын
Thanks!, great video!!
@soureachsak5027
4 жыл бұрын
Hello! Will making any change (edit) to the system evironment variable (path) brong any effect to the computer or the performent?
@JacobSorber
4 жыл бұрын
If you change the PATH variable. It will affect where the system searches for executable programs. This can cause some attempts to run programs to stop working. Maybe, if you added a LOT of directories to the PATH variable, it might slow things down because it might cause more searching-I haven't tried that. I'm just guessing.
@soureachsak5027
4 жыл бұрын
@@JacobSorber Thank you so much!!!
@Financewithabhii
5 жыл бұрын
can you recommend some ways to get better in c++?
@JacobSorber
5 жыл бұрын
Practice. A lot. Find a good book. Watch the C++ videos that I will someday make. Practice. If I knew more about where you are struggling, I might have more specific advice.
@scienceblossom6197
5 жыл бұрын
Why would one want to save a password as an environment variable? To use it in multiple programs without actually needing to hardcode that password inside those programs I guess!?
@JacobSorber
5 жыл бұрын
Good question. I don't think I would ever save a password as an environment variable in a real program. I was just making up variables for example purposes. Probably not the best example.
@Rakusan2
2 жыл бұрын
I have seen it on servers. The reasoning is that the program requires the database password and it's a bad idea to hard code it.
@kituraut8830
3 жыл бұрын
Word could not create work file, Check the temp environment variable
@beckonme4942
5 жыл бұрын
Legend has it the fleecy breeze was so lame.
@JacobSorber
5 жыл бұрын
If by lame, you mean super SWEET, then I totally agree. Glad my videos are becoming legendary. Some recently-shot snow footage needed a home. :)
@loc4725
Жыл бұрын
@@JacobSorber If you ever get a comment on a video and it seems random or given the context it doesn't make sense then it's almost certainly a spammer's attempt to 'chaff' Google's Bayesian anti-spam filter and make the spammer's account look legitimate. In this situation it's best to report the comment as spam, increasing the chances that the account will get flagged.
@kushalshah4728
4 жыл бұрын
I can't see system 32 file in environment variable .. What's the problem? But my windows works fine
@JacobSorber
4 жыл бұрын
I wish I knew what to tell you. I haven't used windows regularly for over a decade.
@Adem-ur2di
5 жыл бұрын
Which terminal plugin on Atom text is using in this Video ?
@JacobSorber
5 жыл бұрын
I think it's called, platformio-ide-terminal.
@m4l490n
4 жыл бұрын
Wait... how do you set an environment variable so it stays in the environment forever and for all sessions and programs?
@JacobSorber
4 жыл бұрын
On Linux or some other Unix-based OS, there are configuration files for your shell (like .bash_profile if you're using bash). You can set the variable in there, and it will be set whenever you create a new session.
@bonitoecacal
4 жыл бұрын
Hi Jacob! Thanks for the videos! I am a Vray for Maya Mac user. Since Apple decided to stop support to nVidia GPU. We can not use the GPU/Cuda rendering and Hybrid Render. This function is disabled at the tap, but still works. The Chaosgroup Support says; (VRAY_MAC_GPU - Though GPU rendering with CUDA on MacOS devices is no longer supported, the advanced users can bring back the old behavior by using this environment variable. Enabling this environment variable is at your own risk!). Ok is my own risk but how can i do it? I have a Nvidia Quadro K5000 that is still support by default Mac OSX. Could you help me/us (Nvidia Mac Users) to still work with Cuda? Thank you!
@alwinsebastian7499
3 жыл бұрын
I am someone who quit programming because I am not understanding what does mean by an "environmental variable"
@juliekaam644
4 жыл бұрын
thanks for your video, please can you explain more how to do this for exemple: print the shell prompt in the format % : : For example: % David: / home / david: the information on the user's name and home must be obtained at the time of execution of the shell by reading the corresponding initial environment variables;
@anthonynjoroge5780
4 жыл бұрын
1:00 that's not true just search for environment variables on the task bar's search bar to get the variables
@JacobSorber
4 жыл бұрын
Yeah, others have pointed this out, too. It's probably never a great idea to pick on an OS I haven't really used in a decade. Thanks. 😀
@FreeLearnclass
4 жыл бұрын
finally now i understand what is this madness.. looks like 50 yr old tech to me
@JacobSorber
4 жыл бұрын
Glad I could help. It's amazing how much 30-50 year old tech is still hanging out in our machines.
@picklerix6162
2 жыл бұрын
Yeah, it’s old and it works.
@nabilmanasiya3519
4 жыл бұрын
i cant understand what is the use of it.
@wastedkafir9134
7 ай бұрын
_like to point out same as linux - you open a console type 'set' enter and you get them. it is easy if you have used MSDOS. So Microsoft has no such intensions_
@SzTz100
4 жыл бұрын
In PowerShell, it's dir env:
@user-lv6qm3fj2z
2 жыл бұрын
in Windows you open a powershell and type "Get-Children Env:" - the same list of variables
@Rakusan2
2 жыл бұрын
You mean "Get-ChildItem Env:" Powershell does not have the command "Get-Children"
@user-lv6qm3fj2z
2 жыл бұрын
@@Rakusan2 yeah, most probably
@beingnikhil155
2 жыл бұрын
Microsoft: "They had us in the first half, not gonna lie"
@JacobSorber
2 жыл бұрын
😂
@tarek_maza
3 жыл бұрын
In windows you just type set and it will list all the environment variables
@JacobSorber
3 жыл бұрын
I know (now), thanks to you Windows users out there (thanks). It's still fun to pick on MS. 😏
@qasimyazigi2941
5 жыл бұрын
Nice video! Thanks!
@adwaitprakashmishra3212
4 жыл бұрын
Almost forgot to like the video.
@supersoniq4102
Жыл бұрын
Stateful vs Stateless
@mackynikat8833
3 жыл бұрын
. great .
@121sbavert
3 жыл бұрын
3 minutes into the video I'm like "wtf are you talking about? How did C come here?" not saying the video is bad just saying that I'm too dumb for this shit
@digitalloom9349
Жыл бұрын
imagen not making this for windows users who are probably you're main audience :)
@naveenchitti3754
4 жыл бұрын
there is nothing related to what are environment variables in this video... video is useful... but, the description doesn't suit it...
@islandcave8738
3 жыл бұрын
main has a 3rd parameter!? Head explodes.
@JacobSorber
3 жыл бұрын
I know, right?!
@mataal8770
3 жыл бұрын
Are you from the Eagles but dropped the hair? One time for Love will keep us alive please. JK
@devgupta7735
4 жыл бұрын
you look like an Indian Actor - Ranveer Singh
@JacobSorber
4 жыл бұрын
Thanks, Dev! Haven't heard that one before.
@sammiemagi6564
9 ай бұрын
Yes you know it all, BUT I still do not understand. Too fast and wasted my time
@webdev4786
5 жыл бұрын
i fell like am more closer to the hardware now.
@edmel144
3 жыл бұрын
Your teeth are nice and pearly white, mine are fv*ked.
Пікірлер: 137