- So the Bash Shell is
offering many different features.
Let's explore some others
like alias, for instance.
Alias allows you to define your own commands.
Normally these aliases are made permanent
through one of the Bash startup files
like /etc/profile.
I'll talk about these Bash startup files later,
but first I want to show you alias.
So let me type alias.
That is showing me all aliases
that have been provided by the system,
including, for instance, grep.
Grep is grep, minus minus color is auto.
That makes a grep
showing us these wonderful colors.
Now, if I want to, I create my own alias.
Alias sander is ls minus l.
Does that make sense?
I'm not sure,
but what I am sure about is that right now
I have a command with the name sander.
Aliases behave as best internal commands.
They become a part of the best shell
and that makes that aliases are very, very fast.
And if you want to configure your aliases
in a persistent way, then you should put them
in one of your best startup files.
Now let me use unalias.
That's the counterpart.
If I use unalias sander
I have just removed the alias sander.
As you can see it, no longer exists.
Now there's some more nice best features
that I wanna talk about.
In Bash you will also find a couple
of useful keyboard shortcuts.
We have already seen a couple of them
and some of them we have not.
Control-l is for clear screen.
You can type clear but Control-l is so much easier.
Or control-u which is allowing you
to wipe the current command line.
You just typed this lengthy command
and then you realize, "Oh, I don't wanna do this."
Control-u and it disappears.
Control-a moves your cursor to the beginning of the line.
And Control-e moves it to the end of the line.
Control-c is a generic interrupt
to the current process.
It will break it,
which means that it will basically stop it.
And if Control-c doesn't work,
try Control-d.
Control-d is a generic exit command
that might also get you out of the situation
where you are in right now.