1 00:00:09,930 --> 00:00:16,620 Finally, we have done the lab set up for this practical section, and now it's time to get started 2 00:00:16,620 --> 00:00:17,810 with Khaleel Linux. 3 00:00:18,570 --> 00:00:25,320 So what we do learn in this lecture, you will learn the basic commands in Linux required for ethical 4 00:00:25,320 --> 00:00:25,740 hacking. 5 00:00:26,310 --> 00:00:32,600 So without wasting any much time, log into Akali Linux Virtual Machine and let get started. 6 00:00:35,190 --> 00:00:36,270 Open the terminal. 7 00:00:41,690 --> 00:00:49,820 And the first basic command that we are going to see is who am I when you press, who am I? 8 00:00:49,850 --> 00:00:55,550 You can see the user name of the person who is currently logged in and using the system. 9 00:00:56,210 --> 00:01:00,640 Then you will see the data command, which gives you the date and time as well. 10 00:01:03,570 --> 00:01:13,590 Then the next is BWV, PWP stands for Present Working Directory right now I am into the home. 11 00:01:13,590 --> 00:01:16,560 That is the next version of Carly. 12 00:01:16,560 --> 00:01:22,430 So I get home and Carly now I'm going to create a new folder, Luna's demo folder. 13 00:01:23,490 --> 00:01:31,110 And now since I am on Carly, I will see list the contents of the desktop that is home folder you can 14 00:01:31,110 --> 00:01:31,440 see. 15 00:01:32,850 --> 00:01:42,140 I mean, Dexter, documents, downloads, music, let us navigate to Dexter, since we have created 16 00:01:42,140 --> 00:01:45,670 the folder on backstop, let's navigate to Dexter. 17 00:01:46,020 --> 00:01:54,290 So now what the city stands for, seedy stands for change and directly I I'm changing the directory 18 00:01:54,290 --> 00:01:55,010 to Dexter. 19 00:01:55,730 --> 00:02:04,820 Changing directory is same as opening a new window in Windows Machine so City Dexter and Ellis Nestande 20 00:02:04,820 --> 00:02:06,290 for at least the contents. 21 00:02:06,710 --> 00:02:14,480 So as you can see on Dexter, when we hit Ellis, we get to see the demo folder now how to go inside 22 00:02:14,570 --> 00:02:15,420 the demo folder. 23 00:02:15,890 --> 00:02:25,190 You can go inside the demo folder as speedy demo folder, or you can just type code the and then press 24 00:02:25,220 --> 00:02:29,250 tab to automatically complete the name Vola. 25 00:02:29,780 --> 00:02:31,680 We are now inside the demo folder. 26 00:02:32,150 --> 00:02:33,710 Now what next 27 00:02:36,380 --> 00:02:36,920 series? 28 00:02:36,950 --> 00:02:42,210 Dot Dot is used to go one step back in Karlee Machine. 29 00:02:42,230 --> 00:02:50,090 So now we can see the dot took us to desktop and again Dot Dot took up to our home. 30 00:02:50,090 --> 00:02:51,350 That is Khaleed Machine. 31 00:02:52,400 --> 00:02:54,130 Let us now again go to the next stop. 32 00:02:55,130 --> 00:02:58,840 You can also go to the folders in the following VCT. 33 00:02:59,350 --> 00:03:10,460 Next up, demo slash folder code only takes one argument and it does not take any spaces, so it's better 34 00:03:10,460 --> 00:03:12,020 you go one by one. 35 00:03:14,440 --> 00:03:20,920 So we are getting back the president working directly is slash home, slash Carly, you may have the 36 00:03:20,920 --> 00:03:21,790 route as well. 37 00:03:22,000 --> 00:03:23,560 Carly is my username. 38 00:03:24,070 --> 00:03:31,870 So that username may change in your virtual environment because you have configured you may have configured 39 00:03:31,870 --> 00:03:35,370 a different name CLEC. 40 00:03:35,410 --> 00:03:36,560 Ah, that is clear. 41 00:03:36,580 --> 00:03:38,850 Thanks for clearing the terminal window. 42 00:03:38,860 --> 00:03:45,200 As you can see, everything got erased after I typed KLR see Aleah. 43 00:03:45,820 --> 00:03:53,530 Next is the Ellis' Dash L Dexter, which means list everything you can see. 44 00:03:53,530 --> 00:03:55,150 There are four files on next up. 45 00:03:55,420 --> 00:04:02,330 And therefore the result that we got is total and these are wdr dash exer. 46 00:04:02,740 --> 00:04:04,300 Now what does that stands for. 47 00:04:05,080 --> 00:04:07,210 D stands for directory. 48 00:04:11,210 --> 00:04:15,820 R stands for read, W stands for right. 49 00:04:18,370 --> 00:04:21,380 And X stands for execution. 50 00:04:21,910 --> 00:04:31,960 That is the permission given for a specific user or group or all those people, the first tuple stands 51 00:04:31,960 --> 00:04:39,580 for user, that is, I'm using the next tuple stands for the group and the last tuple stands for all 52 00:04:39,580 --> 00:04:39,940 of them. 53 00:04:39,970 --> 00:04:40,800 There is others. 54 00:04:41,320 --> 00:04:46,720 So currently on the screen, you, Aphrodite, you can see are W X. 55 00:04:46,720 --> 00:04:52,570 Therefore, user has all the permissions of reading, writing and execution of them will follow. 56 00:04:53,260 --> 00:05:01,620 Group only has read and execute permissions and others have read and execute permission. 57 00:05:07,500 --> 00:05:10,440 Now, let us clear the screen and move ahead. 58 00:05:15,890 --> 00:05:28,490 So type alerts that Dashiell Dexter, you can see there are total 12 folders, but we only thing full 59 00:05:28,490 --> 00:05:37,340 folders, why the remaining eight folders are hidden and therefore you can see the dots and the dots 60 00:05:37,340 --> 00:05:38,960 stand for hidden folders. 61 00:05:42,770 --> 00:05:46,100 Now, let's move on to next basic come on. 62 00:05:50,800 --> 00:05:59,350 The next command is clear, which stands for make or directly, let us force Nymagee to stop and then 63 00:05:59,350 --> 00:06:03,360 I will create a new directory that is a new folder on next. 64 00:06:04,150 --> 00:06:07,750 So type maybe I add the folder name. 65 00:06:07,990 --> 00:06:09,860 The new folder is a folder name. 66 00:06:10,480 --> 00:06:18,070 Now, if you click Ellis', we can see the new folder has been created in the same way from the year 67 00:06:18,070 --> 00:06:18,850 that is removed. 68 00:06:18,850 --> 00:06:21,070 Directory is used to delete the folder. 69 00:06:21,700 --> 00:06:24,390 Now let us go inside the folder. 70 00:06:26,640 --> 00:06:28,000 No such fighter directly. 71 00:06:28,110 --> 00:06:28,410 Why? 72 00:06:28,740 --> 00:06:35,800 Because we are already on the next stop and therefore we cannot execute that command. 73 00:06:36,540 --> 00:06:38,430 So let us go to the new Fulda. 74 00:06:41,660 --> 00:06:47,600 Said the new follow and the new folder is blank is empty after errors I cannot see. 75 00:06:51,590 --> 00:06:53,840 So we saw how to create a new folder. 76 00:07:00,020 --> 00:07:06,080 Now, you can go back to the previous comments by just pressing the upper arrow button on your keyboard, 77 00:07:06,560 --> 00:07:12,950 so press about Arrow to just navigate to the previous commands so that it saves time while executing 78 00:07:12,950 --> 00:07:13,610 the commands. 79 00:07:15,290 --> 00:07:22,310 Try placing the upper arrow button on your keyboard and you will go to the previous commands that you 80 00:07:22,310 --> 00:07:24,470 have typed and execute it on the dominant. 81 00:07:29,420 --> 00:07:32,360 Now, moving on to the next come on. 82 00:07:38,760 --> 00:07:47,130 Now let's create a new file in on a text file where terminal we have seen in windows, we go to some 83 00:07:47,130 --> 00:07:51,050 word document Microsoft Office, and then we create a new file. 84 00:07:51,660 --> 00:07:58,330 But here you can just create a new file with one simple command, and that is the text command. 85 00:07:59,400 --> 00:08:01,350 So we have the present working directory. 86 00:08:01,350 --> 00:08:08,380 We are in home then in the on call room, we are in backstop and on the next stock and we are in the 87 00:08:08,430 --> 00:08:09,180 new folder. 88 00:08:10,050 --> 00:08:14,600 So right touch ABC that is file named or text. 89 00:08:15,540 --> 00:08:23,790 And you can see in the new folder after hitting the Ellis command, we have created the ABC dot file. 90 00:08:32,120 --> 00:08:34,890 Now, let us see how to open the file. 91 00:08:35,600 --> 00:08:38,810 You can either use Cat or you can use the. 92 00:08:42,560 --> 00:08:49,570 So KDA, which takes us back to the root, and if you only type KDDI and hit enter, it will take you 93 00:08:49,570 --> 00:08:50,180 to the root. 94 00:08:58,300 --> 00:09:04,750 Now, the next command is let us copy our text file into another folder. 95 00:09:06,400 --> 00:09:08,440 Your task is not to use mouse. 96 00:09:08,470 --> 00:09:13,930 Your task is to just copy the file from one folder to another folder on top. 97 00:09:15,880 --> 00:09:23,230 You might be confused that a buy in windows, you have just use control, C, control V, but here these 98 00:09:23,230 --> 00:09:24,430 functions are different. 99 00:09:24,610 --> 00:09:26,530 So let is good to see the next stop. 100 00:09:27,460 --> 00:09:33,580 Let us go to, let's say, a new folder or demo folder will create another folder. 101 00:09:35,910 --> 00:09:36,870 Target Fulda. 102 00:09:38,110 --> 00:09:43,960 And again, we have created the target Fooldom target follow up on your next top. 103 00:09:50,000 --> 00:09:52,490 I will copy this absolutely fine. 104 00:09:52,820 --> 00:09:53,270 So. 105 00:10:00,270 --> 00:10:00,840 Kopi. 106 00:10:02,860 --> 00:10:03,670 Next up. 107 00:10:07,660 --> 00:10:16,860 New Fulda, that is the source folder, and we are going to copy the file, that is ABC, That Space, 108 00:10:17,050 --> 00:10:18,400 the destination folder. 109 00:10:18,670 --> 00:10:21,280 That is next top target folder. 110 00:10:22,350 --> 00:10:23,820 And then press enter. 111 00:10:26,660 --> 00:10:29,340 Now, why did we got no such fighter directly? 112 00:10:29,990 --> 00:10:36,160 We made the same mistake, we are already on the next up folder and therefore you will not try to next 113 00:10:36,170 --> 00:10:36,730 up again. 114 00:10:37,010 --> 00:10:44,390 So simply write S.P. new folder, slash ABC dot to target folder. 115 00:10:46,040 --> 00:10:46,580 Again. 116 00:11:06,660 --> 00:11:10,410 The what went wrong in the above comments, let us see. 117 00:11:12,940 --> 00:11:19,840 We are already on the top and we used next up again, so let us rectify that mistake and take the commands 118 00:11:19,840 --> 00:11:20,230 again. 119 00:11:21,310 --> 00:11:24,540 Just erase the next stop and let us see what happens. 120 00:11:29,940 --> 00:11:36,060 Hit Enter Vola, you have successfully copied the file from new folder to target folder. 121 00:11:36,480 --> 00:11:38,240 Let's check the daggered folder. 122 00:11:41,380 --> 00:11:49,000 Seedy target folder and the other commands we are interested in, so we are on NextG. 123 00:11:50,760 --> 00:12:00,000 Let us go to the target folder, Ellis, and there you have we have the ABC dot file. 124 00:12:00,720 --> 00:12:07,500 So in the next lecture, we'll see some advance commands which will be required while tracking different 125 00:12:07,500 --> 00:12:10,950 softwares and executing some command line applications. 126 00:12:12,390 --> 00:12:14,110 Let us have a quick recap. 127 00:12:15,310 --> 00:12:22,980 So in this lecture, we saw the following basic commands KDDI, LSP, WDM, Giddier, Seip, Suru, 128 00:12:23,370 --> 00:12:29,190 and in the next lecture we'll see some advance concepts and commands which are useful for hacking.