1 00:00:00,180 --> 00:00:06,200 Now, guys, in this lecture, we are going to see export, come on, so export, come on is a building 2 00:00:06,220 --> 00:00:08,630 utility of Linux Bassal. 3 00:00:09,090 --> 00:00:16,310 So it is used to ensure the involvement of variables and functions to be passed to the child processors 4 00:00:16,620 --> 00:00:19,710 so it does not affect the existent environment variables. 5 00:00:19,710 --> 00:00:21,790 So this is the thing on the environment. 6 00:00:21,790 --> 00:00:29,370 The variables are set when we open a new channel Sezen at any time if we change any variable value so 7 00:00:29,370 --> 00:00:32,070 the cell has no way to select that change. 8 00:00:32,550 --> 00:00:39,150 And Export Command allows us to update the current session about the changes that have been made with 9 00:00:39,150 --> 00:00:40,740 exported variable. 10 00:00:41,250 --> 00:00:44,560 So we do not need to wait to start a new cell session. 11 00:00:45,030 --> 00:00:48,390 So now let's see what will be the syntax of using this. 12 00:00:49,650 --> 00:00:51,470 So syntax will very clear. 13 00:00:51,480 --> 00:00:53,010 Let me open the Domhnall first. 14 00:00:55,300 --> 00:01:03,730 OK, so let's let me zoom for zooming it simply or simply hold control button and it will start zooming 15 00:01:03,730 --> 00:01:03,890 in. 16 00:01:03,910 --> 00:01:07,280 OK, so this is the terminal that we have on Austin, Texas. 17 00:01:07,300 --> 00:01:11,740 I'm going to give it is it will be like explode and with the space. 18 00:01:12,460 --> 00:01:18,820 This is for F for function and ln here you can use like this. 19 00:01:19,180 --> 00:01:19,810 Okay. 20 00:01:20,230 --> 00:01:24,660 You can also use neme, but hyphen is pretty small. 21 00:01:24,670 --> 00:01:31,110 So use this and you can use it like name and is equal to value. 22 00:01:31,810 --> 00:01:36,180 So this is like this, this is like this particular thing this close. 23 00:01:36,190 --> 00:01:37,110 This, this. 24 00:01:37,260 --> 00:01:40,240 OK, so this is the basic syntax of using export. 25 00:01:40,250 --> 00:01:44,980 So don't confuse if you're not understanding new and if you're not getting it, I will teach you how 26 00:01:44,980 --> 00:01:45,610 you can do this. 27 00:01:45,850 --> 00:01:46,620 OK, guys. 28 00:01:46,960 --> 00:01:52,510 So now first of all, we are going to see the export command without any kind of argument. 29 00:01:52,540 --> 00:01:58,160 So the basic export command will display all the exported environment variable off of a system. 30 00:01:58,180 --> 00:02:04,240 So how you can use it simply type export and hit enter signal. 31 00:02:04,240 --> 00:02:13,210 Guys, you can see that we are having all the more and variable that that exported all over the system. 32 00:02:13,480 --> 00:02:16,120 Let me scroll it up. 33 00:02:16,120 --> 00:02:19,570 You will find all the unwanted variables organized. 34 00:02:20,500 --> 00:02:23,840 OK, so the next thing first of all, let me clear this. 35 00:02:23,840 --> 00:02:25,550 So now we have cleared the window. 36 00:02:25,840 --> 00:02:31,210 Now let's see how to display all exported variable on a current cell. 37 00:02:31,240 --> 00:02:33,580 So as you can see, I'm the road user. 38 00:02:33,940 --> 00:02:34,720 Road user. 39 00:02:35,020 --> 00:02:41,080 So don't worry, if you're not getting it, I will teach you how to become a road user later on in the 40 00:02:41,080 --> 00:02:41,440 school. 41 00:02:41,490 --> 00:02:48,570 So this is not necessary to talk about the road user in this current starting lectures of discourse. 42 00:02:48,580 --> 00:02:52,760 That is why I'm not taking the road user section yet. 43 00:02:52,930 --> 00:02:55,600 I will talk about road user later on in discourse. 44 00:02:55,780 --> 00:03:00,640 OK, so now let's see how to display all the export variables on currency. 45 00:03:00,990 --> 00:03:04,480 So similar to this, we all exported variables on the current cell. 46 00:03:04,510 --> 00:03:12,010 We are going to use like export hyphen P, so this will simply list out all the current variables on 47 00:03:12,370 --> 00:03:15,310 all the all the, all the important variables. 48 00:03:15,310 --> 00:03:16,170 Honokaa intellectually. 49 00:03:16,390 --> 00:03:21,150 Okay, so these all are the environmental variables on the correlation. 50 00:03:21,760 --> 00:03:22,260 OK. 51 00:03:22,570 --> 00:03:24,340 So again, let me clear this. 52 00:03:25,570 --> 00:03:28,810 OK, so the system knows how. 53 00:03:28,970 --> 00:03:33,550 Now let's see how to use export command with the function. 54 00:03:33,670 --> 00:03:37,810 OK, so as I have told you for using function you can use it like this. 55 00:03:38,140 --> 00:03:39,480 So this is the business index. 56 00:03:39,790 --> 00:03:41,770 So now see how you can do that. 57 00:03:42,070 --> 00:03:45,720 So what I'm going to do here is I'm going to create a function like name one. 58 00:03:46,270 --> 00:03:49,810 This is the basic syntax of function on inside this. 59 00:03:49,810 --> 00:03:53,820 I want to print on the screen with equal, OK, equal. 60 00:03:54,040 --> 00:03:56,710 Now I want to print here Lennix. 61 00:03:59,480 --> 00:04:00,720 So this is a Syntex. 62 00:04:01,160 --> 00:04:03,360 OK, now let's close this. 63 00:04:03,410 --> 00:04:05,360 So this is the basic index, not attender. 64 00:04:05,690 --> 00:04:11,620 So as you can see that what this is giving us, OK, system Nuyoricans, Inspector Tolkin. 65 00:04:11,930 --> 00:04:16,230 OK, so what it is doing here is there's a swinger's error. 66 00:04:16,520 --> 00:04:17,480 So now let's. 67 00:04:20,750 --> 00:04:21,890 Minimize, they say, the. 68 00:04:23,790 --> 00:04:25,070 What is the problem here? 69 00:04:25,170 --> 00:04:30,060 Let me do this night into as you can see, I need to add a space here. 70 00:04:30,270 --> 00:04:39,520 OK, so now it is working correctly now simply use export for function F so it will export the function 71 00:04:39,520 --> 00:04:40,220 now hit enter. 72 00:04:40,610 --> 00:04:41,490 OK, what. 73 00:04:42,030 --> 00:04:46,560 OK, the name of a function as like name one function. 74 00:04:46,590 --> 00:04:49,920 OK, let me change the name one night into. 75 00:04:50,340 --> 00:04:56,760 OK, so we are using Barth's to simplify Basia and then I want to see the content inside you, so I'm 76 00:04:56,760 --> 00:04:59,230 going to type the name of my function. 77 00:04:59,700 --> 00:05:03,270 So as you can see that Linnik scores that what we have given here. 78 00:05:03,300 --> 00:05:03,900 OK guys. 79 00:05:04,140 --> 00:05:07,260 So this is how you can use export for the function. 80 00:05:07,720 --> 00:05:08,500 Is this clear? 81 00:05:09,300 --> 00:05:11,900 So I think you get it what you want to. 82 00:05:12,090 --> 00:05:14,190 So you now simply let's see. 83 00:05:14,190 --> 00:05:15,540 First of all, clear this. 84 00:05:16,580 --> 00:05:17,930 First of all, clear this No. 85 00:05:19,510 --> 00:05:21,880 Let's see how we can create the function from beginning. 86 00:05:21,970 --> 00:05:24,100 OK, now let's see that how we can do that. 87 00:05:24,390 --> 00:05:29,950 OK, guys, for that simply type here, nothing but the function name, the function name like fun. 88 00:05:31,360 --> 00:05:34,660 Fun adding this not a big deal. 89 00:05:38,220 --> 00:05:41,070 Let me add the spaces here, Akko. 90 00:05:42,610 --> 00:05:45,250 On here, I want to give hello. 91 00:05:47,770 --> 00:05:56,380 Every one, OK, this is the way simply dominated, and so now we have created this function fun inside, 92 00:05:56,380 --> 00:05:58,330 which we are having haloed with. 93 00:05:58,900 --> 00:06:03,880 OK, so now let's see how you can do that simply type export for exporting it. 94 00:06:04,990 --> 00:06:10,240 Hyphen for function and name of the function, which is one I tend to be using best simplified best 95 00:06:10,420 --> 00:06:11,320 and then the function. 96 00:06:11,320 --> 00:06:15,190 And we just want anything to, as you can see that we are managed to get the result. 97 00:06:15,940 --> 00:06:17,730 What inside the function is. 98 00:06:17,860 --> 00:06:19,820 OK, so which is help everyone. 99 00:06:20,080 --> 00:06:21,850 Now guys, let's give this screen. 100 00:06:23,280 --> 00:06:29,160 And the thing that I'm going to do is I'm going to show you how to assign a value before exporting a 101 00:06:29,170 --> 00:06:30,510 function or a variable. 102 00:06:30,780 --> 00:06:36,990 OK, so now how you can do that assembly type is equal to fight like this and then simply export. 103 00:06:38,620 --> 00:06:43,250 Eight or okay, okay, okay, kill, simply not hit enter. 104 00:06:43,270 --> 00:06:50,590 So we have exported it and now we are going to use print E and we OK, so now. 105 00:06:51,010 --> 00:06:54,370 So what it will do, it was simply using this. 106 00:06:54,370 --> 00:06:59,070 We can verify the assignment by using the print e and we come on. 107 00:06:59,120 --> 00:07:02,900 OK, now enter software and as you can see that we are having to file. 108 00:07:03,520 --> 00:07:04,090 OK guys. 109 00:07:04,300 --> 00:07:07,600 So now let's see how to set them with a text editor. 110 00:07:07,900 --> 00:07:11,320 Now a text application with that we have inside the Linux. 111 00:07:12,590 --> 00:07:20,780 So now let's see now let's see how to set them as a default, Ed, so as we all know, the remote is 112 00:07:20,780 --> 00:07:27,320 the most widely used text editor for the Linux system, and we consider them as default text editor 113 00:07:27,320 --> 00:07:28,790 by using the export command. 114 00:07:28,810 --> 00:07:33,930 So for setting it now, let's see how you can set that simply type export. 115 00:07:34,220 --> 00:07:40,820 This is why exporting it, Ed Ed is spelling is right or not, or is this correct? 116 00:07:41,120 --> 00:07:42,000 Yes, this is correct. 117 00:07:42,020 --> 00:07:51,450 Now use this as the part this is a part of the way, Ed, which is the user, Ben and win. 118 00:07:51,590 --> 00:07:54,260 So if you want to see this, you can see it from here. 119 00:07:54,290 --> 00:08:01,640 OK, so now I'm not going to use this because I know this is the part now simply what you need to do. 120 00:08:01,640 --> 00:08:04,960 It is simply hit enter software and what you need to do. 121 00:08:05,420 --> 00:08:08,810 Next thing that is simply type export. 122 00:08:11,300 --> 00:08:14,210 With this unaccept. 123 00:08:15,970 --> 00:08:16,890 Ed. 124 00:08:16,930 --> 00:08:21,220 OK, so let me guess, planning is correct or not, because if it is. 125 00:08:22,500 --> 00:08:28,580 And you don't think it will give us an insight into so as you can see, that declared hyphenates ed 126 00:08:28,680 --> 00:08:30,030 exporters, Ed? 127 00:08:30,390 --> 00:08:37,720 That simply means that we have successfully managed to set the Weimar's of a default, Ed. 128 00:08:38,070 --> 00:08:43,320 So now let's see how to set an environmental variable so that we have seen earlier. 129 00:08:43,350 --> 00:08:44,400 So now let's see it again. 130 00:08:45,930 --> 00:08:47,580 Now, just clear this knowledge. 131 00:08:47,610 --> 00:08:49,180 See how you can do that. 132 00:08:49,530 --> 00:08:56,240 OK, so the syntax here will be very clear, like export, our name is equal to value. 133 00:08:56,250 --> 00:08:57,380 So this will be the same text. 134 00:08:57,420 --> 00:08:58,640 Now let's see how you can do that. 135 00:08:58,900 --> 00:09:05,220 So export we are going to use export now this as that language value to it is 50. 136 00:09:05,310 --> 00:09:08,250 Now I tend to simplified ecosystem and hit enter. 137 00:09:08,280 --> 00:09:11,900 You will see this says the name of the variable. 138 00:09:11,910 --> 00:09:14,870 Now if you want to see the content, what is the content inside it? 139 00:09:14,880 --> 00:09:19,740 Simply use equal percentage or so, not a dollar sign. 140 00:09:20,280 --> 00:09:24,930 So it will give you the value that what it contains inside it. 141 00:09:25,320 --> 00:09:31,230 OK, so this is how guys you can huze export come on inside Linux operating system.