In this video, I'll tell you about alias.
Alias is what you use to define custom commands.
Some commands defined as an alias are provided as a system default.
To get an overview, just type alias and you see all of them.
You can also define your own using alias key is value.
Like alias del is RM.
That allows you to type del instead of RM if you want to delete files.
To remove an alias, you can use an alias.
Custom aliases are stored in the best startup files.
Because if you just type your alias on the command line, it will be gone after a restart.
You need to make it persistent in the best startup files if you like it.
So when I type alias, I can see all the aliases that already exist.
Like grep, when I use grep root on etc star, let me do a two grade then dev null.
Because I know that this is normally generating lots of error messages.
Here we can see that grep is giving color highlighting.
That's not something that happens by default.
That happens because we have an alias grep that is really redefining the grep command.
Likewise, you can create your own aliases.
One alias that is relevant in a context of RHCSA is alias docker is potman.
Later you will learn about containers and how Red Hat is replacing docker with potman.
But some people like to continue using the docker command.
And then if you have this alias docker is potman, well, you can just continue using the docker command.
And if you regret, well, an alias docker, and then it doesn't work anymore.
Docker command not found.
Let's control C to get out of here.
That's all.