What are Environment Variables, and how do I use them? (get,set)

What are Environment Variables, and how do I use them? (get,set)

Jacob Sorber

5 лет назад

152,539 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Digital Loom
Digital Loom - 26.08.2023 14:24

imagen not making this for windows users who are probably you're main audience :)

Ответить
Joshua
Joshua - 17.07.2023 14:56

What coding editor are you using? It look incredibly neat.

Ответить
AndiTheMan
AndiTheMan - 20.06.2023 12:24

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!

Ответить
mech653
mech653 - 28.05.2023 15:51

Also the env command works in Windows too.

Ответить
LoC
LoC - 04.04.2023 14:33

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?

Ответить
Marcio Andrey Oliveira
Marcio Andrey Oliveira - 15.02.2023 00:47

On MS Windows, open the command prompt "cmd" and type set then press the ENTER key and you will see all the environment variables.

Ответить
Gadi premikudu
Gadi premikudu - 18.01.2023 07:48

Jacob, you're the man. That's it. That's the comment.

Ответить
Super soniq
Super soniq - 12.01.2023 05:41

Stateful vs Stateless

Ответить
Bharat Kumar Gupta
Bharat Kumar Gupta - 31.12.2022 05:29

That was really helpful

Ответить
Tushar Singh
Tushar Singh - 03.09.2022 14:23

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

Ответить
Learn with Breezy
Learn with Breezy - 02.08.2022 17:17

The intro was sick! 😃

Ответить
aditya sharma
aditya sharma - 13.04.2022 13:17

In windows 7 8 there is not an option to add variable in path

Ответить
Taran Agnew
Taran Agnew - 01.04.2022 22:43

do i use a enviroment for a app (on table) that can be as a second screen via wifi (address)?

Ответить
Imane El Mohalil
Imane El Mohalil - 17.03.2022 11:14

Thank you so much!! I looked everywhere for a good and clear explanation and yours was the best one around. You rock!

Ответить
Jen Krash
Jen Krash - 12.01.2022 12:47

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

Ответить
Zac
Zac - 30.12.2021 02:06

Thanks

Ответить
Being Nikhil
Being Nikhil - 26.11.2021 17:43

Microsoft: "They had us in the first half, not gonna lie"

Ответить
Vladimir Kornev
Vladimir Kornev - 02.11.2021 19:32

in Windows you open a powershell and type "Get-Children Env:" - the same list of variables

Ответить
Khaled Hany
Khaled Hany - 02.11.2021 14:08

Nice video, I try to use the make command to compile source code but it says " fatal: unable to open makefile" any suggestions?

Ответить
auf keinsten
auf keinsten - 21.10.2021 18:36

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!

Ответить
smorenutty
smorenutty - 11.08.2021 11:54

thanks

Ответить
Island Cave
Island Cave - 13.06.2021 22:49

main has a 3rd parameter!? Head explodes.

Ответить
Sbeve
Sbeve - 23.04.2021 01:57

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

Ответить
BeepBeepImASheep237 BeepBeepImASheep237
BeepBeepImASheep237 BeepBeepImASheep237 - 28.03.2021 19:01

Whenever I change variables, it feels like: "Jimmy, don't."

Ответить
Neeraj Kale
Neeraj Kale - 25.03.2021 09:03

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.

Ответить
Evolution_Algorithm
Evolution_Algorithm - 14.03.2021 07:29

Your teeth are nice and pearly white, mine are fv*ked.

Ответить
noideaofhowtocallme
noideaofhowtocallme - 02.03.2021 14:46

Finally a very good explanation of WHAT Environment Variables are! Thank you!

Ответить
Mark Daniel Briva
Mark Daniel Briva - 03.02.2021 08:00

Tnx for this. Really helpful

Ответить
Macky ni Kat
Macky ni Kat - 30.01.2021 17:05

. great .

Ответить
Tarek Maza
Tarek Maza - 28.01.2021 23:27

In windows you just type set and it will list all the environment variables

Ответить
Mata Al
Mata Al - 18.01.2021 08:29

Are you from the Eagles but dropped the hair? One time for Love will keep us alive please. JK

Ответить
Bowabro
Bowabro - 05.01.2021 04:25

No idea these existed. Very sweet.

Ответить
Andrew
Andrew - 26.12.2020 07:33

That went over my head pretty fast

Ответить
Nat B
Nat B - 16.12.2020 11:09

Thank you so much!

Ответить
Gmail Service
Gmail Service - 14.12.2020 04:11

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?

Ответить
Kitu Raut
Kitu Raut - 11.12.2020 15:30

Word could not create work file, Check the temp environment variable  -          error what to do pls reply.

Ответить
Kitu Raut
Kitu Raut - 11.12.2020 15:29

Word could not create work file, Check the temp environment variable

Ответить
เบญจรงค์ เปียมาร
เบญจรงค์ เปียมาร - 23.11.2020 11:04

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?

Ответить
Muzamil Ghafar
Muzamil Ghafar - 18.11.2020 02:19

edit system variables, i get a window which gives only two options, variable and variable path..i want all options plz help

Ответить
a tasty pineapple
a tasty pineapple - 22.10.2020 17:31

If you're on windows just open command prompt and type in set and hit enter.

Ответить
matialmar7
matialmar7 - 10.10.2020 15:35

Great video! keep the good work!

Ответить
Tymothy Lim
Tymothy Lim - 08.10.2020 04:12

Thank you for the video Jacob! It was simple and easy to understand. This helps me to understand the purpose of environment variables better!

Ответить
ALWIN SEBASTIAN
ALWIN SEBASTIAN - 02.10.2020 23:57

I am someone who quit programming because I am not understanding what does mean by an "environmental variable"

Ответить
Adwait Prakash Mishra
Adwait Prakash Mishra - 21.09.2020 04:49

Almost forgot to like the video.

Ответить
AmrT Cpp
AmrT Cpp - 31.08.2020 15:55

Thanks!, great video!!

Ответить
Peter Hayman
Peter Hayman - 23.08.2020 07:41

oorrrrrr:
press windows button -> type "env" -> press enter

Ответить
anonymous 123
anonymous 123 - 18.08.2020 14:28

So, they are just variables containing basic system info that any program can access?

Ответить