1 00:00:06,720 --> 00:00:09,630 - So isn't the last part of this lab triggering you 2 00:00:09,630 --> 00:00:13,350 and ensure that the alias is available in sub shells. 3 00:00:13,350 --> 00:00:14,490 Let's go check that out. 4 00:00:14,490 --> 00:00:19,110 I'm using alias sander is LS minus L 5 00:00:19,110 --> 00:00:21,880 and I'm using batch to start a sub sell 6 00:00:23,297 --> 00:00:24,130 And I'm typing sander and oh dear, 7 00:00:24,130 --> 00:00:25,890 we get command not found. 8 00:00:25,890 --> 00:00:27,930 So that is what's going on. 9 00:00:27,930 --> 00:00:29,820 So what are we going to do about it? 10 00:00:29,820 --> 00:00:34,020 Well, we are going to, to take care 11 00:00:34,020 --> 00:00:37,080 of the best profile to start with. 12 00:00:37,080 --> 00:00:41,490 So pseudo VIM on ETC profile. 13 00:00:41,490 --> 00:00:44,160 Let's go look for the aliases. 14 00:00:44,160 --> 00:00:46,020 Do we have our aliases in here? 15 00:00:46,020 --> 00:00:50,100 I'm going to search for slash alias and there we go. 16 00:00:50,100 --> 00:00:53,650 Functions and aliases go into etc best RC 17 00:00:54,840 --> 00:00:57,540 You can see how looking up a specific keyword 18 00:00:57,540 --> 00:01:00,450 can be useful in a configuration file. 19 00:01:00,450 --> 00:01:05,450 Now, as the functions and alias are going into etc bash RC 20 00:01:05,790 --> 00:01:09,630 we need to have a look at etc bash RC. 21 00:01:09,630 --> 00:01:13,050 And what do we see? 22 00:01:13,050 --> 00:01:17,070 Well, we see it's not a good idea to change this fell 23 00:01:17,070 --> 00:01:18,600 unless you know what you are doing 24 00:01:18,600 --> 00:01:22,230 it's so much better, but yeah, now I'm a little bit confused 25 00:01:22,230 --> 00:01:27,230 because it was telling me that aliases go in ATC bash RC. 26 00:01:27,780 --> 00:01:32,780 So I wanna be here and this is all that I can do. 27 00:01:32,820 --> 00:01:37,590 So I am going to open this cell anyway, using pseudo. 28 00:01:37,590 --> 00:01:41,910 If you ever find complex shelf script like this 29 00:01:41,910 --> 00:01:45,000 there's only one place where you can put your own stuff. 30 00:01:45,000 --> 00:01:47,590 And that is all the way to the end 31 00:01:48,600 --> 00:01:50,160 because if you don't do that 32 00:01:50,160 --> 00:01:52,620 it might be part of some conditional structure. 33 00:01:52,620 --> 00:01:56,100 I don't want it to be part of conditional structure. 34 00:01:56,100 --> 00:01:57,900 So I am using alias. 35 00:01:57,900 --> 00:02:01,633 IP config is IP, 36 00:02:01,633 --> 00:02:04,890 a DDR show, and that is to 37 00:02:04,890 --> 00:02:07,920 make the Linux operating system a little bit more convenient 38 00:02:07,920 --> 00:02:11,370 for our French, the windows users, right? 39 00:02:11,370 --> 00:02:16,370 Let me use pseudo VIM on ATC profile dot D slash 40 00:02:18,840 --> 00:02:22,830 lab dot S H the name of the file doesn't really matter 41 00:02:22,830 --> 00:02:24,930 as long as it exists. 42 00:02:24,930 --> 00:02:29,700 And I am going to use export color is blue. 43 00:02:31,830 --> 00:02:34,380 Notice the different spelling of the variable, but that's 44 00:02:34,380 --> 00:02:37,590 because I want to show you that it really works. 45 00:02:37,590 --> 00:02:42,590 Now let's exit a shell and let's, let's open a new shell 46 00:02:43,830 --> 00:02:48,830 to see what exactly login means in a batch environment. 47 00:02:50,370 --> 00:02:52,140 So I'm using echo dollar color. 48 00:02:52,140 --> 00:02:53,490 Do we have it? 49 00:02:53,490 --> 00:02:54,390 Yeah, we have it. 50 00:02:54,390 --> 00:02:57,990 So login an ATC profile is not a real login. 51 00:02:57,990 --> 00:02:58,823 It's the opening 52 00:02:58,823 --> 00:03:01,740 of first cell in your environment 53 00:03:01,740 --> 00:03:03,990 as you can see, it's right here. 54 00:03:03,990 --> 00:03:06,870 And what about this IP config command? 55 00:03:06,870 --> 00:03:07,710 Well, there we go. 56 00:03:07,710 --> 00:03:10,860 IP config command works as well. 57 00:03:10,860 --> 00:03:15,330 So we have just become a little bit more windows friendly. 58 00:03:15,330 --> 00:03:16,163 That's all.