Hello everyone in this venue we again continue our discussion of our alias command.
So I forgot to mention one more useful command that Windows DOS users always use the DEL command so
users or Windows users use the DEL command instead of the R and command so they can make an alias called
Bill or in-dash I this is the interactive option which will prompt you before deletion.
So yeah if I execute this one.
So now if I make for example say make a file play one.
So now if I just said they'll find one it will prompt you of course before delete before deletion.
And I'll just say yes who you are.
This is one more command that Windows users will be happy to or to make or create create on their own.
Right.
OK so now I will make one more command.
I'll call it foo.
And this I would just want to show the date and the calendar together.
Right.
So every time I just execute.
It will show me the date and the calendar.
So what if I want to delete this alias.
So now every time I type food will show me this what I want what if I want to freeze this name fool.
I want to delete the alias fool.
It's very easy to just see an alias and then your alias name so an alias fool.
Now if I type full will not work it will tell me command not found.
Even if I say type food that you can see not found.
So let's create it one more time foo or any who is equal to date can calendar K..
Now if I try to tell me who is ill used to date calendar as you see.
Just like I did.
Now if I type food it will show me the date and the calendar.
Now if I said an alias foo then 2 again it will not work all to me.
Command not found.
So an alias is used to remove your alias right.
However let's do this one more time.
So let's make sure that we have to show the date and the calendar.
Right now foo will show me the date and the calendar.
However if I exit my session and they open a new session now just like this one and if I type food now
will not work.
Even though I did not delete it on my intention.
The problem is that if you create an alias here it will not show up at the next session.
It will not be saved for the next session.
So if you want to keep your alias indefinitely or if you want to just keep it for yourself all the time
you have to save it in a file called Don't bash or see on your home directory.
So if you go to your home directory and then Eliz does a can find a file called Dot bash or see
it should be.
Yet don't bash or see this file here.
So if you open it.
Is it a bash or C you can find many things here that we will talk about later.
But more importantly you'll find here is the aliases so you can actually type your alias here so I will
see alias foo equal date.
Now if I saved this now if I type who.
So if I if I exist now and I open a new session I type Q As you can see it will show me the date and
the calendar.
And now if I close the session and open it again
it will still show me code it is already saved on my doc bash RC.
The hidden file dog bash C which is on your home directory and actually if you want to see all the alias
commands that are created on your system you can just say alias without anything and this will show
you all the alias that that exist on your system so as you can see I have an alias for grep for LS For
even see my new alias your foo is present.
So pretty much if you want to delete all these aliases but I don't recommend you to do so of course
you can just go to the the edit the home directory or see and as you can see I can delete my full alias
or I can do whatever I want.
So yeah so that's it for this video.
I hope you guys now enjoyed it and by now you know how to create new aliases.
How to show your alias on the system that already exist.
How to an alias and how to view the dog bash or see command or file.
Ok I hope you guys enjoyed it.
Ciao.