1 00:00:00,720 --> 00:00:07,260 Hello everyone in this venue we again continue our discussion of our alias command. 2 00:00:07,260 --> 00:00:17,310 So I forgot to mention one more useful command that Windows DOS users always use the DEL command so 3 00:00:17,310 --> 00:00:24,570 users or Windows users use the DEL command instead of the R and command so they can make an alias called 4 00:00:24,660 --> 00:00:32,020 Bill or in-dash I this is the interactive option which will prompt you before deletion. 5 00:00:32,030 --> 00:00:35,680 So yeah if I execute this one. 6 00:00:35,720 --> 00:00:45,500 So now if I make for example say make a file play one. 7 00:00:45,500 --> 00:00:53,890 So now if I just said they'll find one it will prompt you of course before delete before deletion. 8 00:00:54,110 --> 00:00:56,980 And I'll just say yes who you are. 9 00:00:56,990 --> 00:01:03,430 This is one more command that Windows users will be happy to or to make or create create on their own. 10 00:01:03,460 --> 00:01:04,180 Right. 11 00:01:04,660 --> 00:01:08,370 OK so now I will make one more command. 12 00:01:08,380 --> 00:01:10,180 I'll call it foo. 13 00:01:10,630 --> 00:01:15,220 And this I would just want to show the date and the calendar together. 14 00:01:15,490 --> 00:01:15,980 Right. 15 00:01:17,030 --> 00:01:20,440 So every time I just execute. 16 00:01:20,900 --> 00:01:23,730 It will show me the date and the calendar. 17 00:01:24,230 --> 00:01:29,260 So what if I want to delete this alias. 18 00:01:29,360 --> 00:01:35,860 So now every time I type food will show me this what I want what if I want to freeze this name fool. 19 00:01:36,020 --> 00:01:37,890 I want to delete the alias fool. 20 00:01:38,210 --> 00:01:44,250 It's very easy to just see an alias and then your alias name so an alias fool. 21 00:01:44,320 --> 00:01:49,540 Now if I type full will not work it will tell me command not found. 22 00:01:49,940 --> 00:01:55,320 Even if I say type food that you can see not found. 23 00:01:55,390 --> 00:02:06,210 So let's create it one more time foo or any who is equal to date can calendar K.. 24 00:02:06,260 --> 00:02:13,530 Now if I try to tell me who is ill used to date calendar as you see. 25 00:02:14,090 --> 00:02:14,960 Just like I did. 26 00:02:14,960 --> 00:02:19,610 Now if I type food it will show me the date and the calendar. 27 00:02:19,610 --> 00:02:26,050 Now if I said an alias foo then 2 again it will not work all to me. 28 00:02:26,060 --> 00:02:27,440 Command not found. 29 00:02:27,440 --> 00:02:32,060 So an alias is used to remove your alias right. 30 00:02:32,270 --> 00:02:35,770 However let's do this one more time. 31 00:02:35,880 --> 00:02:41,010 So let's make sure that we have to show the date and the calendar. 32 00:02:41,040 --> 00:02:44,580 Right now foo will show me the date and the calendar. 33 00:02:44,580 --> 00:02:55,010 However if I exit my session and they open a new session now just like this one and if I type food now 34 00:02:56,080 --> 00:02:57,000 will not work. 35 00:02:57,040 --> 00:03:01,090 Even though I did not delete it on my intention. 36 00:03:01,090 --> 00:03:08,620 The problem is that if you create an alias here it will not show up at the next session. 37 00:03:08,620 --> 00:03:12,310 It will not be saved for the next session. 38 00:03:12,430 --> 00:03:20,230 So if you want to keep your alias indefinitely or if you want to just keep it for yourself all the time 39 00:03:20,650 --> 00:03:25,520 you have to save it in a file called Don't bash or see on your home directory. 40 00:03:25,570 --> 00:03:34,270 So if you go to your home directory and then Eliz does a can find a file called Dot bash or see 41 00:03:37,390 --> 00:03:38,610 it should be. 42 00:03:38,610 --> 00:03:41,710 Yet don't bash or see this file here. 43 00:03:41,770 --> 00:03:43,410 So if you open it. 44 00:03:43,460 --> 00:03:50,620 Is it a bash or C you can find many things here that we will talk about later. 45 00:03:50,630 --> 00:03:59,090 But more importantly you'll find here is the aliases so you can actually type your alias here so I will 46 00:03:59,090 --> 00:04:03,490 see alias foo equal date. 47 00:04:04,070 --> 00:04:12,130 Now if I saved this now if I type who. 48 00:04:12,170 --> 00:04:23,260 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 49 00:04:23,260 --> 00:04:24,770 the calendar. 50 00:04:25,520 --> 00:04:28,920 And now if I close the session and open it again 51 00:04:32,590 --> 00:04:38,560 it will still show me code it is already saved on my doc bash RC. 52 00:04:38,860 --> 00:04:49,000 The hidden file dog bash C which is on your home directory and actually if you want to see all the alias 53 00:04:49,000 --> 00:04:57,880 commands that are created on your system you can just say alias without anything and this will show 54 00:04:57,880 --> 00:05:07,780 you all the alias that that exist on your system so as you can see I have an alias for grep for LS For 55 00:05:07,810 --> 00:05:13,280 even see my new alias your foo is present. 56 00:05:13,630 --> 00:05:19,720 So pretty much if you want to delete all these aliases but I don't recommend you to do so of course 57 00:05:20,260 --> 00:05:32,010 you can just go to the the edit the home directory or see and as you can see I can delete my full alias 58 00:05:32,070 --> 00:05:35,730 or I can do whatever I want. 59 00:05:35,820 --> 00:05:39,610 So yeah so that's it for this video. 60 00:05:39,630 --> 00:05:45,210 I hope you guys now enjoyed it and by now you know how to create new aliases. 61 00:05:45,300 --> 00:05:49,870 How to show your alias on the system that already exist. 62 00:05:49,890 --> 00:05:56,150 How to an alias and how to view the dog bash or see command or file. 63 00:05:56,500 --> 00:05:58,020 Ok I hope you guys enjoyed it. 64 00:05:58,020 --> 00:05:58,530 Ciao.