Now, guys, in this lecture, we are going to see export, come on, so export, come on is a building
utility of Linux Bassal.
So it is used to ensure the involvement of variables and functions to be passed to the child processors
so it does not affect the existent environment variables.
So this is the thing on the environment.
The variables are set when we open a new channel Sezen at any time if we change any variable value so
the cell has no way to select that change.
And Export Command allows us to update the current session about the changes that have been made with
exported variable.
So we do not need to wait to start a new cell session.
So now let's see what will be the syntax of using this.
So syntax will very clear.
Let me open the Domhnall first.
OK, so let's let me zoom for zooming it simply or simply hold control button and it will start zooming
in.
OK, so this is the terminal that we have on Austin, Texas.
I'm going to give it is it will be like explode and with the space.
This is for F for function and ln here you can use like this.
Okay.
You can also use neme, but hyphen is pretty small.
So use this and you can use it like name and is equal to value.
So this is like this, this is like this particular thing this close.
This, this.
OK, so this is the basic syntax of using export.
So don't confuse if you're not understanding new and if you're not getting it, I will teach you how
you can do this.
OK, guys.
So now first of all, we are going to see the export command without any kind of argument.
So the basic export command will display all the exported environment variable off of a system.
So how you can use it simply type export and hit enter signal.
Guys, you can see that we are having all the more and variable that that exported all over the system.
Let me scroll it up.
You will find all the unwanted variables organized.
OK, so the next thing first of all, let me clear this.
So now we have cleared the window.
Now let's see how to display all exported variable on a current cell.
So as you can see, I'm the road user.
Road user.
So don't worry, if you're not getting it, I will teach you how to become a road user later on in the
school.
So this is not necessary to talk about the road user in this current starting lectures of discourse.
That is why I'm not taking the road user section yet.
I will talk about road user later on in discourse.
OK, so now let's see how to display all the export variables on currency.
So similar to this, we all exported variables on the current cell.
We are going to use like export hyphen P, so this will simply list out all the current variables on
all the all the, all the important variables.
Honokaa intellectually.
Okay, so these all are the environmental variables on the correlation.
OK.
So again, let me clear this.
OK, so the system knows how.
Now let's see how to use export command with the function.
OK, so as I have told you for using function you can use it like this.
So this is the business index.
So now see how you can do that.
So what I'm going to do here is I'm going to create a function like name one.
This is the basic syntax of function on inside this.
I want to print on the screen with equal, OK, equal.
Now I want to print here Lennix.
So this is a Syntex.
OK, now let's close this.
So this is the basic index, not attender.
So as you can see that what this is giving us, OK, system Nuyoricans, Inspector Tolkin.
OK, so what it is doing here is there's a swinger's error.
So now let's.
Minimize, they say, the.
What is the problem here?
Let me do this night into as you can see, I need to add a space here.
OK, so now it is working correctly now simply use export for function F so it will export the function
now hit enter.
OK, what.
OK, the name of a function as like name one function.
OK, let me change the name one night into.
OK, so we are using Barth's to simplify Basia and then I want to see the content inside you, so I'm
going to type the name of my function.
So as you can see that Linnik scores that what we have given here.
OK guys.
So this is how you can use export for the function.
Is this clear?
So I think you get it what you want to.
So you now simply let's see.
First of all, clear this.
First of all, clear this No.
Let's see how we can create the function from beginning.
OK, now let's see that how we can do that.
OK, guys, for that simply type here, nothing but the function name, the function name like fun.
Fun adding this not a big deal.
Let me add the spaces here, Akko.
On here, I want to give hello.
Every one, OK, this is the way simply dominated, and so now we have created this function fun inside,
which we are having haloed with.
OK, so now let's see how you can do that simply type export for exporting it.
Hyphen for function and name of the function, which is one I tend to be using best simplified best
and then the function.
And we just want anything to, as you can see that we are managed to get the result.
What inside the function is.
OK, so which is help everyone.
Now guys, let's give this screen.
And the thing that I'm going to do is I'm going to show you how to assign a value before exporting a
function or a variable.
OK, so now how you can do that assembly type is equal to fight like this and then simply export.
Eight or okay, okay, okay, kill, simply not hit enter.
So we have exported it and now we are going to use print E and we OK, so now.
So what it will do, it was simply using this.
We can verify the assignment by using the print e and we come on.
OK, now enter software and as you can see that we are having to file.
OK guys.
So now let's see how to set them with a text editor.
Now a text application with that we have inside the Linux.
So now let's see now let's see how to set them as a default, Ed, so as we all know, the remote is
the most widely used text editor for the Linux system, and we consider them as default text editor
by using the export command.
So for setting it now, let's see how you can set that simply type export.
This is why exporting it, Ed Ed is spelling is right or not, or is this correct?
Yes, this is correct.
Now use this as the part this is a part of the way, Ed, which is the user, Ben and win.
So if you want to see this, you can see it from here.
OK, so now I'm not going to use this because I know this is the part now simply what you need to do.
It is simply hit enter software and what you need to do.
Next thing that is simply type export.
With this unaccept.
Ed.
OK, so let me guess, planning is correct or not, because if it is.
And you don't think it will give us an insight into so as you can see, that declared hyphenates ed
exporters, Ed?
That simply means that we have successfully managed to set the Weimar's of a default, Ed.
So now let's see how to set an environmental variable so that we have seen earlier.
So now let's see it again.
Now, just clear this knowledge.
See how you can do that.
OK, so the syntax here will be very clear, like export, our name is equal to value.
So this will be the same text.
Now let's see how you can do that.
So export we are going to use export now this as that language value to it is 50.
Now I tend to simplified ecosystem and hit enter.
You will see this says the name of the variable.
Now if you want to see the content, what is the content inside it?
Simply use equal percentage or so, not a dollar sign.
So it will give you the value that what it contains inside it.
OK, so this is how guys you can huze export come on inside Linux operating system.