Changing variable values for a session.
So now now let's see how the changing variables value as not adhered to.
His side's variable contains the value of the number of commands to store in the history file.
Sometimes you won't want your system to save past commands, perhaps because you don't want to leave
any evidence of your activity on your own system or the target system.
So in that case, you can set the his size variable to zero.
So the system will install any of your past commands because this variable has a single value to change
it, you assign it a new value in the familiar way here.
So he's size here.
Uh, his size, for example.
Zero.
And so we assigned it now when you try to use up here, up and down arrows to, uh, wrinkle your comments,
nothing happens, happens because the system no longer stores them here, as you can see, and nothing
happens here.
So this is stealthy, although it can be inconvenience.
So I will change this to one thousand back.
So we're making variable value chains permanent, so we are watching an environment variable that change
only occurs in that particular environment.
In this case, the environment is the best shell station.
So this means that you when you close the terminal here, for example.
So when you close the terminal.
Um, any chance you made are lost.
So we were able to set back to their default, so for example, his size one, as you can see in the
last months, is not working.
When they closed that and open it again, for example, as you can see here, we can see ours.
Yes, I see it.
So now we will, uh, change in permanently so.
If you want to make the changes permanent, so you need to use the export command.
So this command will export a new value from your current environment.
This is the best shell to the rest of the system, though, making it available in every environment
until the oil change and export it again.
So variables are strings.
So if you run on the country's side, it's it isn't a bad idea to say the contents of a variable to
it takes one before you modify it.
So, for example, since we were about to change, the P is one variable, uh, which controls the information
we will display in the prompt.
So the first run, the command to save the existing files to have NEG text while in the current user's
home directory.
So Echo here is size and then, uh, this is them.
This means our home directory and the value of our own value of my keys is that the exterior?
Oops!
I actually write and exploit it, so we don't need expert.
So unless unless you can see the value of my, his size is here.
So let's read it with cat common value of my his size.
As you can see, there's a 1000 right at it, so we can open it with MOSFET as well.
Uh, here.
Well, the off my side, as you can see it, let's open it.
And as you can see, there is a one thousand year.
So let's close it.
I will show more examples this way you can always undo your changes if you want to be ever more catalyst
to create a text file with all the current settings, you can save the output of the said commonplace
text file with command like this, for example, set up here the value of all and, for example, time
or oh, let's write our party at eleven forty nine here.
Eleven forty nine and texting.
So let's open it again, or we can add value of all, as you can see, and we printed all of these variables
here.
We can open it with our text for you as well as you can the value of files I can see here we have almost
two hundred thirty eight lines of these set files.
So now that he says, variable is still be set to zero when you live this, uh, environment and international
environment, if you want to raise it here, let's actually change it first to here.
Uh, clear, clear and export Keast size here.
So now that he says variable was said, uh, to zero.
So when you leave this environment and the interim environment, if you want to raise it to his size,
uh, to variable to one thousand, simply enter this, for example, um, his his size as in one thousand
and then export his size.
So this court will set your his side's variables value to one thousand.
And export it to all your environments here.