1 00:00:00,210 --> 00:00:02,470 Hi, everyone, welcome back to the lecture. 2 00:00:02,490 --> 00:00:09,450 In this lecture, we are going to create while using that method, so this video is all about creation 3 00:00:09,450 --> 00:00:11,440 of fires and doing something with the fire. 4 00:00:11,920 --> 00:00:18,030 OK, so we are going to learn about how to create a directory later in this video. 5 00:00:18,390 --> 00:00:22,040 So first of all, we are going to see how to create a file using Peachment. 6 00:00:22,410 --> 00:00:25,640 So as we all know that we have learned about God. 7 00:00:26,010 --> 00:00:29,460 So this is the second command for file creation, which is touch. 8 00:00:29,700 --> 00:00:37,590 So this command was originally developed so a user could simply touch a file to change some of its details, 9 00:00:37,590 --> 00:00:41,940 such as date it has it was created or modified. 10 00:00:42,720 --> 00:00:48,960 So however, if the file does not exists, so this command create that file by default. 11 00:00:49,350 --> 00:00:53,100 So now let's see how we can create any file using touch. 12 00:00:53,400 --> 00:00:54,500 So now let's see. 13 00:00:54,510 --> 00:01:00,090 Currently we are in home Kaali, so here I am going to create a file which is using with the help of 14 00:01:00,090 --> 00:01:02,070 touch and finally with new file. 15 00:01:02,100 --> 00:01:03,420 So this is the basic syntax. 16 00:01:03,690 --> 00:01:07,630 OK, so after you enter now the file has been created. 17 00:01:07,860 --> 00:01:11,490 So now what I'm going to do, I'm going to use list for list. 18 00:01:11,700 --> 00:01:15,100 So I what I'm going to do, I'm going to use workflow. 19 00:01:15,420 --> 00:01:22,410 So as you can see that I use Ellis hyphen and to see the long list of the directories. 20 00:01:22,620 --> 00:01:25,510 OK, so a list for a long list of the deputies. 21 00:01:25,860 --> 00:01:32,880 OK, so after hitting enter, so I see that a new file has created with the name new file. 22 00:01:33,250 --> 00:01:41,520 OK, so as you can see here now, when you notice here, the size is zero because it does file does 23 00:01:41,520 --> 00:01:43,170 not contains anything. 24 00:01:43,410 --> 00:01:46,650 That is why it is suing me died. 25 00:01:46,650 --> 00:01:50,110 The size of this particular thing of file is zero. 26 00:01:50,520 --> 00:01:53,740 So this is how you can create a file using touch command. 27 00:01:54,240 --> 00:01:58,570 So, guys, now let's learn about how to create a directory that remains folder. 28 00:01:58,830 --> 00:02:04,170 So as you can see that with the blue color, these are the directory to know how to create directory 29 00:02:04,170 --> 00:02:04,660 in color. 30 00:02:05,340 --> 00:02:07,170 So first of all, let's clear it. 31 00:02:07,890 --> 00:02:16,020 So after clearing it, so the command for creating a directory in Linux is included, which is MKR did 32 00:02:16,020 --> 00:02:16,920 make directory. 33 00:02:17,100 --> 00:02:20,320 OK, so what it is. 34 00:02:20,340 --> 00:02:28,360 So a contraction of Megg directly to create a deck to name now with the help of that and get there. 35 00:02:28,590 --> 00:02:30,200 This is the way to write. 36 00:02:30,220 --> 00:02:33,630 So the name of the directory is new directory. 37 00:02:34,110 --> 00:02:40,620 OK, so simply hit enter software and you can see that we have created this directory now as you can 38 00:02:40,620 --> 00:02:42,310 see that new directory. 39 00:02:42,540 --> 00:02:49,900 So guys, I want to navigate the new directory so how I can navigate simply city change directory. 40 00:02:50,400 --> 00:02:52,530 OK, Siri, let me do it again. 41 00:02:52,530 --> 00:02:54,450 Siri new. 42 00:02:56,150 --> 00:02:57,070 Right now. 43 00:02:57,500 --> 00:03:03,080 OK, now hit enter now, as you can see that we are having we are inside the new directory now. 44 00:03:03,080 --> 00:03:07,370 I want to see what this particular directory contains. 45 00:03:07,700 --> 00:03:11,930 Now, when I do, it is not containing anything right now. 46 00:03:12,200 --> 00:03:16,610 OK, so now, guys, the next thing that I am going to teach you is how to copy files. 47 00:03:17,060 --> 00:03:19,340 So to copy file Veals command. 48 00:03:19,340 --> 00:03:19,870 Copy. 49 00:03:20,720 --> 00:03:27,570 OK, so this creates a duplicate of the file in the new location and leaves the alduin in place. 50 00:03:28,010 --> 00:03:36,550 So here we will create the file all file in the room directly with each command and copy it into Drood 51 00:03:36,710 --> 00:03:44,960 new directory renaming it and we can say renaming it in the process and leaving the original file in 52 00:03:44,960 --> 00:03:45,320 place. 53 00:03:45,620 --> 00:03:48,830 OK, so now let's get back Siri. 54 00:03:49,750 --> 00:03:51,580 Now let's check where I am. 55 00:03:51,950 --> 00:03:56,030 So I'm in Cali, so let's clear this sort of clearing now. 56 00:03:56,270 --> 00:03:58,170 I'm going to create Tetch. 57 00:03:58,550 --> 00:03:59,600 All right. 58 00:03:59,900 --> 00:04:02,980 So this is a file that I'm going to create software creating. 59 00:04:02,990 --> 00:04:08,190 Now, when you Ellers, as you can see, that the file has been created all file. 60 00:04:08,540 --> 00:04:12,560 Now I want to copy it, sepi S.P.. 61 00:04:12,560 --> 00:04:20,640 OK, C.p and of the recipe, I will provide the part where I want to copy this file with an onion. 62 00:04:21,020 --> 00:04:27,080 So I want to, I want to copy this file into. 63 00:04:30,430 --> 00:04:34,930 Directory, and the name is new, but not hacked into. 64 00:04:35,350 --> 00:04:38,060 So, guys, as you can see that this is giving us ETA. 65 00:04:38,380 --> 00:04:39,790 So what is the problem here? 66 00:04:40,240 --> 00:04:45,040 First of all, I need to add the filename that I want to copy. 67 00:04:46,790 --> 00:04:48,770 Which is all fine. 68 00:04:50,580 --> 00:04:51,090 OK. 69 00:04:52,900 --> 00:05:00,550 Now, let's check, everything is fine, no, what it is doing here, why this command is not running 70 00:05:00,550 --> 00:05:03,830 successfully, it is because I'm using route. 71 00:05:04,060 --> 00:05:08,140 OK, so now, guys, let's change the route to. 72 00:05:09,250 --> 00:05:10,540 Homeless sheikh. 73 00:05:12,330 --> 00:05:13,860 Deskilling is EDR. 74 00:05:18,930 --> 00:05:25,150 OK, now, as you can see that we have we have successfully copied this particular file, which is all 75 00:05:25,150 --> 00:05:27,250 file into the new directory. 76 00:05:27,280 --> 00:05:29,320 Now, if you want to check the what you need to do. 77 00:05:29,470 --> 00:05:34,070 So, first of all, let's understand why these commands are getting error. 78 00:05:34,570 --> 00:05:39,830 So the problem here is not a check from first one Sepi Root new data file. 79 00:05:40,780 --> 00:05:43,980 So what it is doing here, it is nothing. 80 00:05:43,990 --> 00:05:44,860 It is doing nothing. 81 00:05:44,860 --> 00:05:49,450 But it is saying that missing destination file opened after this. 82 00:05:49,660 --> 00:05:58,690 OK, so this is why it is giving enough of or I haven't as you can see that we need to add all failure 83 00:05:58,690 --> 00:05:59,170 but we. 84 00:05:59,710 --> 00:06:00,950 OK, we didn't. 85 00:06:01,230 --> 00:06:03,070 OK, now let's check next to one. 86 00:06:03,310 --> 00:06:06,520 So when I added all file. 87 00:06:06,700 --> 00:06:11,390 But the problem here is we are currently not the root user as you can see that Karlee Ateret. 88 00:06:12,190 --> 00:06:18,250 So that is why I think it is throwing us an error nowadays when you see this particular command, which 89 00:06:18,250 --> 00:06:21,270 as you can see that, OK, when you see this, come on. 90 00:06:21,550 --> 00:06:25,720 So in this command, what we did here is known as this command. 91 00:06:26,050 --> 00:06:34,900 This one is also showing us an error, because when you touch file PWP, when you check like PWP, WisdomTree 92 00:06:35,200 --> 00:06:36,570 currently are working on. 93 00:06:36,730 --> 00:06:42,800 So like BWV, as you can see that this this is a directory where we are currently working on. 94 00:06:43,060 --> 00:06:48,500 So in this case, I didn't add added this, Kaleem. 95 00:06:48,520 --> 00:06:49,880 So that is where it is trying to say that. 96 00:06:50,110 --> 00:06:51,430 Now let's check this one. 97 00:06:51,460 --> 00:06:58,330 So in this case where it is in this case, as you can see, that we have added all the correct path, 98 00:06:58,330 --> 00:07:00,120 which is home, calling you directly in your file. 99 00:07:00,310 --> 00:07:05,860 So we have successfully created we have successfully copied this particular old file into the new director 100 00:07:05,860 --> 00:07:07,210 with a new name, new file. 101 00:07:07,390 --> 00:07:09,790 OK, so now let's clear this. 102 00:07:09,790 --> 00:07:18,880 All of the clearing, this knowledge we are currently working on home Carlino is the things are very 103 00:07:18,880 --> 00:07:19,270 clear. 104 00:07:19,280 --> 00:07:21,510 Now, let's check new rectories. 105 00:07:21,520 --> 00:07:27,880 I want to change the directory with the help of Siri New Retender. 106 00:07:27,880 --> 00:07:29,580 Now, currently, I mean, you do. 107 00:07:30,370 --> 00:07:34,100 So as you can see that we are inside the new file. 108 00:07:34,390 --> 00:07:38,020 Now, if you want to see the content. 109 00:07:41,410 --> 00:07:44,530 So it is containing nothing, that is where it is showing us nothing. 110 00:07:44,830 --> 00:07:49,360 So this is how you can copy a file from one place to another place. 111 00:07:49,480 --> 00:07:53,780 OK, now, guys, let's learn renaming a file. 112 00:07:53,800 --> 00:08:02,740 So unfortunately, Khalid does not have a command intended solely for re re re naming a file such as 113 00:08:02,740 --> 00:08:04,750 Windows in some other operating system do. 114 00:08:04,750 --> 00:08:11,290 But it does not have moved on because it it does have MOFCOM on. 115 00:08:11,620 --> 00:08:22,060 So every command can be used to move a file or directory to a new location or simply to give an existing 116 00:08:22,060 --> 00:08:23,500 file a new name. 117 00:08:23,530 --> 00:08:26,500 So now let's repeat it again. 118 00:08:27,040 --> 00:08:28,990 Now I'm going to repeat it again. 119 00:08:29,660 --> 00:08:38,620 Scali does not have a command pending slowly for renaming a file, so it does not have any command to 120 00:08:38,710 --> 00:08:39,540 name a file. 121 00:08:39,910 --> 00:08:44,620 So as Windows and some other operating system has like and on. 122 00:08:45,810 --> 00:08:54,930 But if you talk about Linux, it does have me command, which is move command, so the move, come on, 123 00:08:54,930 --> 00:09:03,540 or any command can be used to move a file or directory to a new location or simply to give an existing 124 00:09:03,540 --> 00:09:04,530 file a new name. 125 00:09:04,860 --> 00:09:13,770 So to rename new file to suppose like this is the new one, I want to rename it with the new file too. 126 00:09:14,040 --> 00:09:15,510 So how you can do that? 127 00:09:16,670 --> 00:09:26,390 Simply with M.V. new file to new file to know how to enter knowledge to LSW, you can see that we have 128 00:09:26,390 --> 00:09:30,530 successfully renamed it this particular file. 129 00:09:31,720 --> 00:09:38,650 So now let's learn how to read, remove a file, how to remove a file. 130 00:09:38,950 --> 00:09:42,010 OK, so currently we're in district, as we all know that. 131 00:09:42,340 --> 00:09:46,210 So to remove a file, you can simply use armed command. 132 00:09:46,210 --> 00:09:53,400 So to move to move any file we use and we come and to remove any file we use. 133 00:09:53,410 --> 00:09:54,080 Adam, come on. 134 00:09:54,610 --> 00:10:03,100 Now, if you want to see it, simply use M oh sorry for remove are m come on remove new file. 135 00:10:03,610 --> 00:10:06,120 Do not pretend not to edit. 136 00:10:06,130 --> 00:10:08,000 As you can see, we are getting nothing. 137 00:10:08,320 --> 00:10:12,110 OK, so this is how you can remove a file. 138 00:10:12,400 --> 00:10:19,690 Now if you want to see how to remove a directory so the command for removing a directory is simpler 139 00:10:19,990 --> 00:10:22,590 to arrange a command for removing file. 140 00:10:22,990 --> 00:10:29,380 But we did all we can say directly appended like we use item. 141 00:10:30,690 --> 00:10:33,120 OK, what I'm going to do is KDDI. 142 00:10:35,830 --> 00:10:38,180 OK, now let's clear it first. 143 00:10:39,130 --> 00:10:41,080 Now let's do this. 144 00:10:41,120 --> 00:10:47,260 OK, so things are clear that we are having the OK, so now let's try. 145 00:10:47,470 --> 00:10:55,000 So in case of war, we can say removing our territory, we can also use like this. 146 00:10:55,000 --> 00:10:59,410 Let's see if it's gonna work or not dirty. 147 00:10:59,610 --> 00:11:03,580 And when you hit enter now guys, let's check. 148 00:11:03,580 --> 00:11:05,060 Is it working or not? 149 00:11:05,380 --> 00:11:09,310 As you can see that we have successfully removed new territory. 150 00:11:09,320 --> 00:11:13,680 So this is how you can use removing directory. 151 00:11:13,720 --> 00:11:14,220 Come on. 152 00:11:14,590 --> 00:11:22,660 So, guys, this is all about all the basic commands that you can use inside Garley Linux or we can 153 00:11:22,660 --> 00:11:24,720 save Linux operating system. 154 00:11:25,060 --> 00:11:32,980 So these all are the basic commands that you must be aware about, because in this course we are going 155 00:11:32,980 --> 00:11:40,480 to see so many things related to Linux related to these commands related to anything that I have taught 156 00:11:40,480 --> 00:11:40,680 you. 157 00:11:41,320 --> 00:11:44,350 So guys, please be very aware. 158 00:11:44,860 --> 00:11:47,530 Please keep repeating these commands. 159 00:11:47,530 --> 00:11:55,840 Please keep practicing these commands because these commands will going to play very crucial, very 160 00:11:56,050 --> 00:11:59,740 crucial role when it comes to Linux operating system. 161 00:11:59,740 --> 00:12:05,590 Because Linux is not about graphical user interface, it's all about terminal. 162 00:12:06,460 --> 00:12:10,570 You are directly interacting with terminal with the help of command. 163 00:12:10,670 --> 00:12:14,650 As you can see that the commands make your work very easy, man. 164 00:12:14,650 --> 00:12:15,490 Very easy. 165 00:12:16,370 --> 00:12:21,250 For the simple command, you can create the folder, you can remove a folder, you can copy a folder, 166 00:12:21,260 --> 00:12:22,860 you can do anything with the commands. 167 00:12:23,240 --> 00:12:33,620 So this is going to be very, very, uh, we can say fun when you do practice, when you learn things. 168 00:12:33,970 --> 00:12:41,270 And if you have any doubt, please do ask Doubt's, because if you ask me, then I will answer all the 169 00:12:41,270 --> 00:12:42,140 questions. 170 00:12:42,530 --> 00:12:44,810 I will answer all the questions. 171 00:12:45,170 --> 00:12:47,360 So please keep practicing. 172 00:12:47,600 --> 00:12:50,770 Please learn from other sources. 173 00:12:51,140 --> 00:12:58,760 This is there is no restriction that you need to learn or you have to learn with discourse only. 174 00:12:59,000 --> 00:13:00,470 You have so many sources. 175 00:13:00,470 --> 00:13:05,330 You learn from them and you practice and make a better human being. 176 00:13:05,690 --> 00:13:08,560 And I just believe on one person. 177 00:13:09,170 --> 00:13:11,780 So what what is one percent rule? 178 00:13:11,780 --> 00:13:13,250 It is all about? 179 00:13:13,580 --> 00:13:21,590 You have to improve yourself with the one person as compared to yesterday. 180 00:13:21,830 --> 00:13:26,320 You have to be one person better than yesterday. 181 00:13:26,540 --> 00:13:28,600 So this is how one person rule works. 182 00:13:28,610 --> 00:13:31,550 You keep learning, keep practicing, keep enjoying. 183 00:13:31,550 --> 00:13:34,220 And it's all about learning. 184 00:13:34,220 --> 00:13:35,480 Life is all about learning. 185 00:13:35,750 --> 00:13:37,040 And thank you for watching, guys. 186 00:13:37,040 --> 00:13:38,120 I hope you guys enjoyed it.