Okay, so the first question was to set a variable with the name color and the value red, and
we need to ensure that this is available every time the current user account logs in.
So I'm in the root shell, and what works for the root user in this case works for any user,
and I would go for vim on .bash underscore profile.
And there it includes the .bashrc, which is for specific sub-shells, and then we can see
the prompt user-specific environment and startup programs.
So let me use export color.
The question was in lower case, so let's respect the lower case, color is red.
And next, we also need to ensure that an alias that runs the command ls minus lrt exists
while executing the dir command.
Well, as you see on the top of this .bash underscore profile, you should put that in
the .bashrc.
So let me use vim on .bashrc, and there on the bottom of it, there's a list of aliases,
and I am going to use alias dir equals.
Between single quotes, ls minus lrt, single quote closing, and that should be it.
Next, we need to make sure that the bash history file can grow to a maximum size of 2,500 NTVs.
Let's start by checking out the current value.
That is echo $hist, and next, I'm using the tab key twice where we see hist file size,
currently set to 1,000.
So what am I going to do?
Well, it depends on the scope of it, but I would say let's put it in the bash profile
where we are going to use export hist file size is 2,500.
All right, now I want to close this shell and open a new login shell for the user root,
and let's do echo $color, and there we see that works, and echo $hist file size,
and as you can see, that works as well.
So mission accomplished.