 Welcome this video is part of a series be sure to check out the full playlist There should be a link in the description of this video and also be a link at the end of the video I do thank you for joining me today I hope that you've watched the previous videos as well as all the hundreds of videos I have on my Channel already check out my website films by Chris comm. That's Chris of the K There's a link in the description So we're gonna looking at the export option when it comes to variables now right here We're in the shell. We're working in bash and I can say X equals 10 will say and I can say echo dollar sign X and of course it's gonna give me 10 But occasionally you might see when people are giving instruction on stuff. They might see something like this Export X 10 If I echo it out, it works the same thing the first place I saw this at least that I remember seeing it was years ago where I was doing SSH stuff where I was Exporting and creating different displays and I saw them like what why is that? Why are they telling me to export the variable? What does that mean? Well, I'm gonna tell you what that means today So as you saw I created a variable. Let's create another rule I'm gonna say y equals 11 and of course I can say export Dollar sign y and we get 11, but if we spawn a Sub-process, let's say I start bash another session of bash So up here. We're in bash. We're in one session, but we just spawn a new session down here And if I echo dollar sign y it's gonna say nothing because dollar sign because y hasn't been Created yet It doesn't exist yet in this session But if I exit out and then echo y you can see that it's still equals 11 in the mother Session if you want to say that so let me go ahead and clear the screen here So what we can do if I want to I can say export in this case, we'll do z equals 12 and Now that we did that I can say echo dollar sign z and it says 12 and if I start a new session of bash I can say echo dollar sign z and you can see that it has passed this variable the the processes we have spawned from our main process the variables are still existing in that Sub-process, so that's where you might want to use export where you might be spawning Different shells and terminals while you're working and you want your variables to follow into that But you don't want to make permanent system variables, so I hope that was clear And I hope you understand it and hope you find it useful and maybe understand more because again for a while I've seen I'd seen that in tutorials and stuff and I didn't bother looking up what it meant at first I'm like, okay if I'm supposed to export the variable I'll export the variable I do. Thank you for watching. Please visit filmsbychris.com. That's Chris of the K There is a link in the description of the video to my website films by Chris and there you can search through all my videos from both My channels I have thousands enjoy them and If you like them think about subscribing liking sharing commenting and supporting maybe financially with PayPal or through patreon.com forward slash metal x 1,000 you find those links at my website or in the description of the video and Even a dollar a month, you know, I Appreciate if we can get you know a bunch of you to do a dollar a month. That would be awesome I do. Thank you for watching. Please visit again filmsbychris.com and I hope that you have a great day