1 00:00:01,440 --> 00:00:05,250 Welcome back, ladies and gentlemen, this will be a short lecture here, are we going to start working 2 00:00:05,250 --> 00:00:06,900 on it before we start working on a project? 3 00:00:06,900 --> 00:00:09,210 We need to use the command line now. 4 00:00:09,390 --> 00:00:13,650 I'm going to use the window so it's a little bit different from the Mac, but I will try to explain 5 00:00:13,650 --> 00:00:15,010 the max commands as well. 6 00:00:15,270 --> 00:00:19,250 Now, command line is something that we need to install the back packages just later on. 7 00:00:19,470 --> 00:00:27,030 So if you have knowledge about using the command prompt or terminal in the max, then you are OK with 8 00:00:27,030 --> 00:00:27,450 this lecture. 9 00:00:27,450 --> 00:00:33,750 You can skip this lecture now in Mac, it's called terminal to open up the terminal and in Windows it's 10 00:00:33,750 --> 00:00:34,820 called command prompt. 11 00:00:35,010 --> 00:00:37,050 So how you can open it is to stop here. 12 00:00:37,170 --> 00:00:39,110 CMD and he enters. 13 00:00:39,130 --> 00:00:40,170 I'm using Windows 10. 14 00:00:40,350 --> 00:00:44,040 Right, so I can zoom in this one little bit to make it more visible. 15 00:00:44,040 --> 00:00:49,740 Now, here in the desktop, I do have you can create a folder here, empty folder, or you can use this 16 00:00:49,740 --> 00:00:56,220 MAPI starter so you can grab this from the resources because we're going to start working shortly with 17 00:00:56,220 --> 00:00:57,630 this file folder as well. 18 00:00:57,870 --> 00:01:02,850 OK, but if you want to sit back and watch it, then just please do this because I know a lot of you 19 00:01:02,850 --> 00:01:04,470 guys just want to do that. 20 00:01:04,470 --> 00:01:07,450 And after that you can start working on your projects. 21 00:01:07,520 --> 00:01:09,840 OK, now I do have a couple of folders here. 22 00:01:11,190 --> 00:01:19,450 So what I can do here in Linux or Max, it allows and it will list all of the directories, but in Windows 23 00:01:19,470 --> 00:01:22,960 is D.R and it will list all of the directories here. 24 00:01:22,960 --> 00:01:26,150 I have 22 directories, three files, stuff like that. 25 00:01:26,460 --> 00:01:28,440 What if I want to go to the desktop? 26 00:01:28,440 --> 00:01:30,180 What everything is located for me. 27 00:01:30,190 --> 00:01:34,140 OK, now I need to go see in the name. 28 00:01:34,830 --> 00:01:38,310 So desktop in the name of the directory down when I go. 29 00:01:38,790 --> 00:01:39,150 Right. 30 00:01:40,350 --> 00:01:50,730 And this will if I put, if I press enter I will go, I will change from this until this up to this 31 00:01:50,730 --> 00:01:53,910 rupture is going to go restaged slash that stuff. 32 00:01:53,920 --> 00:01:55,910 So that's it is my desktop. 33 00:01:56,160 --> 00:01:58,120 So if I use D-R. 34 00:01:58,500 --> 00:02:02,490 So actually I did explain CD means change directorate's. 35 00:02:02,490 --> 00:02:04,770 The same for Macs and it's the same for Linux. 36 00:02:05,160 --> 00:02:10,650 Now I can use Elst for week for Macs or D-R to see what's happening here. 37 00:02:10,650 --> 00:02:13,650 Now I do have a couple of things here. 38 00:02:13,650 --> 00:02:16,800 I do have two files and five directories. 39 00:02:17,130 --> 00:02:17,520 Right. 40 00:02:17,810 --> 00:02:20,400 And I want to go to this map starter. 41 00:02:20,790 --> 00:02:21,120 Good. 42 00:02:21,120 --> 00:02:24,930 So I'm going to use change director again, space moppy. 43 00:02:25,110 --> 00:02:32,160 Emma, you can press step here and it will give you it will out the complete until here. 44 00:02:32,160 --> 00:02:32,520 Why? 45 00:02:32,700 --> 00:02:34,350 Because I have to with the same name. 46 00:02:34,770 --> 00:02:39,330 So I need to start typing until something is different from this too. 47 00:02:39,510 --> 00:02:42,960 So the terminal will know what I'm trying to do. 48 00:02:42,960 --> 00:02:49,770 So now if I type stab again it will complete the second one because OK, this mapi dash is different 49 00:02:49,770 --> 00:02:50,430 than the mapping. 50 00:02:50,430 --> 00:02:50,760 Right. 51 00:02:51,060 --> 00:02:52,140 And if I click enter. 52 00:02:52,350 --> 00:02:54,300 So I'm inside this map mapi started. 53 00:02:54,330 --> 00:02:57,450 OK, let me show you what I have in this map started. 54 00:02:57,690 --> 00:03:01,620 I do have this distribution folder and I do have the source folder. 55 00:03:01,620 --> 00:03:01,950 Right. 56 00:03:02,310 --> 00:03:12,360 OK, now if I use the the R or else it will give me just exactly what I'm trying to tell you now so 57 00:03:12,360 --> 00:03:14,460 you know how to go to a directory. 58 00:03:14,460 --> 00:03:15,900 But what if you want to go back. 59 00:03:16,590 --> 00:03:21,420 So if you want to go one level back, so you're going to see the space double dots. 60 00:03:22,650 --> 00:03:23,880 Right, and hit enter. 61 00:03:24,060 --> 00:03:28,920 So remember I'm here in the map started started also when I hit enter, I will go back to the desktop 62 00:03:30,420 --> 00:03:37,260 cuz now I'm back into the desktop and that is how you can move up and down. 63 00:03:37,590 --> 00:03:40,890 One more thing because I've run a couple of commands here. 64 00:03:41,040 --> 00:03:48,360 I can use the keyboards up and down arrows right here, and this will list all of these commands that 65 00:03:48,360 --> 00:03:49,170 I've used before. 66 00:03:49,440 --> 00:03:51,420 So I want to go back to DC. 67 00:03:51,420 --> 00:03:52,250 The map you started. 68 00:03:52,260 --> 00:03:53,070 I can enter. 69 00:03:53,220 --> 00:03:54,540 I don't have to type it again. 70 00:03:55,110 --> 00:03:55,770 That's cool. 71 00:03:56,070 --> 00:03:56,640 Nice. 72 00:03:56,940 --> 00:04:01,470 So what we can do here, we want to start using. 73 00:04:01,770 --> 00:04:03,990 The next part is to create a folder, actually. 74 00:04:04,260 --> 00:04:04,650 Right. 75 00:04:05,040 --> 00:04:10,470 So the folder we can create we emcdda are and the name of the folder. 76 00:04:10,560 --> 00:04:10,950 Right. 77 00:04:11,190 --> 00:04:15,360 So we can say EMK make directory. 78 00:04:16,050 --> 00:04:19,950 So I want to make the ah I want to create a folder inside a map estado. 79 00:04:19,950 --> 00:04:20,220 Right. 80 00:04:20,370 --> 00:04:28,500 And I'm going to call it a new folder and I'm going to hit enter. 81 00:04:29,310 --> 00:04:36,270 By the way, this is the same for this is pretty much seen for Macs and Windows. 82 00:04:36,570 --> 00:04:38,430 Let's confirm that I have a new folder here. 83 00:04:38,460 --> 00:04:38,760 Yep. 84 00:04:38,970 --> 00:04:39,690 It's empty. 85 00:04:40,170 --> 00:04:44,670 So now you know how to create a folder, but how we can create a file. 86 00:04:44,820 --> 00:04:52,440 So in Mac and Linux we need to write touch in the name of the file index that J is right. 87 00:04:52,710 --> 00:04:55,140 So I'm not going to run this command because it's not going to execute. 88 00:04:55,350 --> 00:04:57,240 So this is for for Macs and Linux. 89 00:04:57,450 --> 00:04:59,730 But if I want to create a file in window. 90 00:04:59,870 --> 00:05:06,770 It's a copy, no capital and you ever single out an indexed object. 91 00:05:07,100 --> 00:05:10,130 This, ladies and gentlemen, will create a file here. 92 00:05:11,780 --> 00:05:12,790 Oops, what's happening? 93 00:05:16,620 --> 00:05:26,280 And why is that showing Gobbi index, Jarius, let's put it the oh, right, because I was not inside 94 00:05:26,280 --> 00:05:26,820 this folder. 95 00:05:26,820 --> 00:05:28,110 I'm just going to delete it from here. 96 00:05:28,300 --> 00:05:30,090 I'm going to show you how you can delete it here. 97 00:05:30,090 --> 00:05:30,340 Right. 98 00:05:30,540 --> 00:05:35,250 So I need to go see the new folder and I'm going to say copy. 99 00:05:38,570 --> 00:05:40,820 No index, not jazz. 100 00:05:41,020 --> 00:05:44,760 OK, now if I go DVR, I will see that file here, right? 101 00:05:45,010 --> 00:05:46,870 I got confused, ladies and gentlemen, a little bit. 102 00:05:47,220 --> 00:05:48,810 It is I do have this file. 103 00:05:49,080 --> 00:05:56,710 Now, this is in the Windows, but in in Linux or Macs, you need to use touch the name of the file. 104 00:05:56,720 --> 00:05:59,570 But first, make sure that you are inside this new folder. 105 00:05:59,930 --> 00:06:00,270 Cool. 106 00:06:02,330 --> 00:06:08,030 Now let's learn how to copy these indexes, not just file from the new folder and put it back to the 107 00:06:08,030 --> 00:06:10,540 map you started or the parent directory. 108 00:06:10,550 --> 00:06:10,810 Right. 109 00:06:11,120 --> 00:06:12,170 So I want to go here. 110 00:06:12,170 --> 00:06:12,530 Sorry. 111 00:06:12,650 --> 00:06:14,060 I want to go from this folder. 112 00:06:14,180 --> 00:06:16,160 I want to copy it and I want to put it here. 113 00:06:16,580 --> 00:06:19,550 OK, so in it's a little bit different in windows. 114 00:06:19,550 --> 00:06:22,670 It's a little bit different in, in, in the Mac. 115 00:06:22,890 --> 00:06:31,580 OK, in a map in the Mac is C.p copy in the name of the file for example, index that J.S. and the where 116 00:06:31,580 --> 00:06:32,500 you want to be copied. 117 00:06:32,690 --> 00:06:36,560 So I'm going to go one level up, two dots and that will go there. 118 00:06:36,650 --> 00:06:43,610 So use this one if you use Mac, but if you're using windows like me, what you need to do is you need 119 00:06:43,610 --> 00:06:45,620 to use the word copy. 120 00:06:46,790 --> 00:06:47,210 Right. 121 00:06:47,900 --> 00:06:51,050 Index that J.S. sorry. 122 00:06:51,320 --> 00:06:56,310 And I want to go to the parent folder and I'm going to hit enter and say one file copy. 123 00:06:56,690 --> 00:06:59,010 Now here is the index. 124 00:06:59,110 --> 00:07:04,400 Jazz is dear, but I do have in the new folder, the same file is still there because I didn't delete 125 00:07:04,400 --> 00:07:04,520 it. 126 00:07:04,520 --> 00:07:05,560 It just copy it. 127 00:07:06,110 --> 00:07:06,430 Good. 128 00:07:06,650 --> 00:07:11,960 This is different now once more you need to use. 129 00:07:12,890 --> 00:07:22,120 So for example here I use copy index that js and and also the the way it needs to go in here in Linux 130 00:07:22,130 --> 00:07:23,620 or Mac, you need to use C.p. 131 00:07:25,640 --> 00:07:30,350 OK, let's play a little bit more here from inside this new folder again, and I'm going to create a 132 00:07:30,350 --> 00:07:31,760 new file. 133 00:07:31,760 --> 00:07:32,840 So I'm going to say copy. 134 00:07:33,920 --> 00:07:40,880 No Abduh is and this will create sorry. 135 00:07:40,880 --> 00:07:46,030 Instead of yeah I had a mistake spelling mistakes. 136 00:07:46,160 --> 00:07:48,620 I did copy, no apologies. 137 00:07:48,620 --> 00:07:50,930 And that will create additional file in the new folder. 138 00:07:51,320 --> 00:07:57,920 And I now want to move I want to completely move these at the Gere's from this new folder into MAPI 139 00:07:57,920 --> 00:07:58,430 starter. 140 00:07:58,700 --> 00:08:00,680 So that is not the same as a copy. 141 00:08:00,710 --> 00:08:05,300 Now here are used copy and you should use touch if you use wind. 142 00:08:05,750 --> 00:08:09,130 If you're using Macs right o k. 143 00:08:09,140 --> 00:08:12,290 Now how we can move these files. 144 00:08:12,560 --> 00:08:18,530 So in Mac is M.V. and in the windows is move. 145 00:08:18,740 --> 00:08:21,590 So I'm going to use move apgar's. 146 00:08:21,590 --> 00:08:26,480 But remember you need to be inside the folder and you need to specify where you need to move. 147 00:08:26,750 --> 00:08:27,110 Right. 148 00:08:27,140 --> 00:08:29,180 So I want to move it back to the parent folder. 149 00:08:29,390 --> 00:08:32,870 I'm going to hit enter now in here. 150 00:08:32,870 --> 00:08:35,480 It is the Japanese there, but it's not going to be here. 151 00:08:35,480 --> 00:08:36,110 It's moved. 152 00:08:36,620 --> 00:08:37,010 Right. 153 00:08:37,130 --> 00:08:42,440 So now you know how to create file, create a folder, copy a file and move the file. 154 00:08:42,440 --> 00:08:42,880 Good. 155 00:08:43,190 --> 00:08:50,000 Now, what about to delete the swells iMac for the leading the file, for example. 156 00:08:50,000 --> 00:08:57,200 I do have in new here I do have a new folder, one index of jazz and you can confirm this by D.R or 157 00:08:57,200 --> 00:08:59,390 else right here it is one file. 158 00:08:59,600 --> 00:09:02,450 So I just want to delete this one in Mac. 159 00:09:02,660 --> 00:09:07,730 It's R.M. Index that JS and you're going to hit enter now. 160 00:09:07,730 --> 00:09:09,710 This will delete the file permanently. 161 00:09:09,830 --> 00:09:13,640 You will not be able to find it, delete it permanently from everywhere. 162 00:09:13,910 --> 00:09:20,530 But in windows it's Dille Index Digest's. 163 00:09:20,540 --> 00:09:24,380 Right, so if you enter it will not show me anything. 164 00:09:24,650 --> 00:09:28,250 But if I go back here, here is I don't have this index ojars. 165 00:09:28,490 --> 00:09:30,110 I do have those two here. 166 00:09:30,110 --> 00:09:31,550 Right here it is. 167 00:09:31,550 --> 00:09:32,780 And that means it's working. 168 00:09:32,790 --> 00:09:37,250 OK, now I want to go one back CD, two dots. 169 00:09:37,970 --> 00:09:39,180 So I mean mapi starting. 170 00:09:39,200 --> 00:09:44,990 I'm not inside this new folder so show you how you can delete a file, but I need to show you how you 171 00:09:44,990 --> 00:09:46,430 need to delete a folder. 172 00:09:46,610 --> 00:09:51,710 So in a Mac it's R.M. Dash or so these are 173 00:09:54,800 --> 00:09:57,050 so these are is a flag. 174 00:09:57,050 --> 00:09:58,370 There are is a flag. 175 00:09:58,370 --> 00:10:04,130 So R.M. flag armies delete recursively everything that it's inside the folder. 176 00:10:04,340 --> 00:10:08,750 For example, if you have files it will delete all of the files one by one. 177 00:10:08,750 --> 00:10:12,890 So or dash or in the name of the folder. 178 00:10:12,890 --> 00:10:14,390 New folder. 179 00:10:14,390 --> 00:10:14,720 Right. 180 00:10:15,140 --> 00:10:18,260 But in Windows it's a little bit different. 181 00:10:18,500 --> 00:10:21,350 So you need to hit enter in order this to be executed in Mac. 182 00:10:21,530 --> 00:10:34,370 But Windows is are m d.r so remove directory slash forward slash s and the any new new folder. 183 00:10:34,940 --> 00:10:35,330 Right. 184 00:10:35,540 --> 00:10:37,430 So I'm going to enter into a. 185 00:10:37,490 --> 00:10:38,040 Sure. 186 00:10:38,180 --> 00:10:40,220 Yes, that's it. 187 00:10:40,400 --> 00:10:45,620 Now, if I use Diaa or else I'm not going to have that directory anymore. 188 00:10:45,680 --> 00:10:46,690 There it is. 189 00:10:46,970 --> 00:10:48,440 I don't have it right. 190 00:10:49,160 --> 00:10:50,960 That is pretty much it. 191 00:10:50,960 --> 00:10:55,940 How you can delete all of those files now. 192 00:10:57,530 --> 00:10:59,660 Now, we have two files here, app and. 193 00:11:00,140 --> 00:11:05,840 I just want to delete so I can just show you how you can delete two files in one go so you can say Dell 194 00:11:07,430 --> 00:11:11,660 App Jars and index dodgiest. 195 00:11:12,080 --> 00:11:15,410 So I'm going to hit enter and here you go. 196 00:11:15,410 --> 00:11:16,400 You don't have it anymore. 197 00:11:16,410 --> 00:11:20,870 If I put the I want the ah they're not there. 198 00:11:21,050 --> 00:11:27,760 So the same was are in Mac R.M. Index, not just an app that jazz. 199 00:11:27,770 --> 00:11:28,050 Right. 200 00:11:28,510 --> 00:11:29,450 So if you're using Mac. 201 00:11:29,670 --> 00:11:29,980 Good. 202 00:11:30,860 --> 00:11:36,530 Now one more thing that I want to show you is how you can open a file inside here. 203 00:11:36,530 --> 00:11:47,880 So inside my source folder, I do have this index so I need to go CD sirc right in in Mac it's open. 204 00:11:48,530 --> 00:11:53,720 So if I go DIY the are or else I will be able to see this index. 205 00:11:53,720 --> 00:11:54,000 Right. 206 00:11:54,200 --> 00:11:55,610 So I want to open this file. 207 00:11:55,610 --> 00:12:01,670 So in Mac is open index that HTML and you need to enter. 208 00:12:01,910 --> 00:12:11,970 It's not going to work for me because for me the windows you need to see start index dot html in here. 209 00:12:11,990 --> 00:12:14,340 This is going to open up in a local browser. 210 00:12:14,690 --> 00:12:20,270 Now for me the default browser is Firefox and that's why it's opening for you. 211 00:12:20,270 --> 00:12:21,140 Maybe something else. 212 00:12:21,510 --> 00:12:26,870 And here it's loading the file, but it's loading without the stylus. 213 00:12:26,870 --> 00:12:28,130 That's why it's like this, right. 214 00:12:28,880 --> 00:12:29,490 Oh good. 215 00:12:30,350 --> 00:12:33,970 Now you know how to create files, move through directories. 216 00:12:34,190 --> 00:12:37,040 And one more thing in Mac you can use clear. 217 00:12:37,760 --> 00:12:38,240 Right. 218 00:12:38,360 --> 00:12:40,610 To clear this entire thing. 219 00:12:40,610 --> 00:12:58,700 Entire command prompt in windows a c o l r or wait, it was s.L pass or it is not why I said so in windows. 220 00:12:58,700 --> 00:13:04,550 This one in Mac clear like c l. 221 00:13:04,550 --> 00:13:06,200 S he'd enter. 222 00:13:06,380 --> 00:13:07,910 You're going to clean the entire screen. 223 00:13:08,150 --> 00:13:08,950 That is pretty much it. 224 00:13:08,960 --> 00:13:13,370 So you know how to clear the screen, you know how to create files, you know how to navigate up and 225 00:13:13,370 --> 00:13:14,750 down through the directories. 226 00:13:14,930 --> 00:13:16,670 You know how to create new directory. 227 00:13:16,940 --> 00:13:21,920 You know how to move a file, a copy file from one place to some other place. 228 00:13:22,250 --> 00:13:23,510 You can delete that file. 229 00:13:23,510 --> 00:13:28,850 You can delete that directory, you can delete multiple files, and also you can open up files through 230 00:13:28,850 --> 00:13:29,570 the terminal. 231 00:13:29,870 --> 00:13:32,600 So, yeah, that is pretty much it for this lecture. 232 00:13:32,600 --> 00:13:36,740 I hope you enjoyed and learn a lot about this command problem. 233 00:13:36,950 --> 00:13:38,180 Right, because you're going to need it. 234 00:13:38,390 --> 00:13:40,690 This for next lecture. 235 00:13:40,700 --> 00:13:42,410 We're going to install a couple of things for this. 236 00:13:42,680 --> 00:13:49,370 And I'm sure now that you know how this is working and that's pretty much it, I hope I'm going to see 237 00:13:49,370 --> 00:13:50,900 you in the next one and stay safe.