1 00:00:00,300 --> 00:00:01,133 ‫Instructor: Hi. 2 00:00:01,133 --> 00:00:05,400 ‫During this section we have learned a lot of Linux commands, 3 00:00:05,400 --> 00:00:07,830 ‫and actually we are gonna learn a little bit more 4 00:00:07,830 --> 00:00:10,530 ‫in this lecture and then we are okay. 5 00:00:10,530 --> 00:00:11,940 ‫So before we go on, 6 00:00:11,940 --> 00:00:15,840 ‫you have to make sure that you are learning Linux. 7 00:00:15,840 --> 00:00:17,550 ‫You're not learning Kali Linux, 8 00:00:17,550 --> 00:00:20,305 ‫you're not learning a version of Kali Linux, 9 00:00:20,305 --> 00:00:22,620 ‫you're actually learning the Linux. 10 00:00:22,620 --> 00:00:25,050 ‫You're learning the commands so that 11 00:00:25,050 --> 00:00:27,510 ‫if you come across in any situation where 12 00:00:27,510 --> 00:00:31,470 ‫you need to work with another version, another distribution, 13 00:00:31,470 --> 00:00:33,270 ‫you would feel comfortable. 14 00:00:33,270 --> 00:00:36,120 ‫Of course you are not comfortable at this point 15 00:00:36,120 --> 00:00:39,780 ‫but you will be after the end of this course. 16 00:00:39,780 --> 00:00:43,200 ‫Okay, so let's see A little bit more commands. 17 00:00:43,200 --> 00:00:45,120 ‫Right now, you know the ls, right? 18 00:00:45,120 --> 00:00:47,700 ‫It lists the available files and folders, 19 00:00:47,700 --> 00:00:52,410 ‫but what you don't know is the ls -la like this, okay? 20 00:00:52,410 --> 00:00:54,540 ‫Ls -la. 21 00:00:54,540 --> 00:00:57,473 ‫So if you do that rather than ls 22 00:00:57,473 --> 00:00:59,812 ‫it lists all the hidden files 23 00:00:59,812 --> 00:01:04,812 ‫and folders along with more detailed view as well. 24 00:01:05,070 --> 00:01:09,780 ‫So for example over here we have all the lines and inside 25 00:01:09,780 --> 00:01:12,450 ‫of the documents I believe we don't have any kind 26 00:01:12,450 --> 00:01:15,330 ‫of like hidden files and folders but if it were 27 00:01:15,330 --> 00:01:17,133 ‫we would've seen them over here. 28 00:01:18,276 --> 00:01:21,750 ‫The first column is not exactly as important right now 29 00:01:21,750 --> 00:01:23,970 ‫but you can see the kali, 30 00:01:23,970 --> 00:01:26,460 ‫the user that has created this file, 31 00:01:26,460 --> 00:01:27,480 ‫and also the group 32 00:01:27,480 --> 00:01:31,200 ‫and also the bytes of the file and the data of the file. 33 00:01:31,200 --> 00:01:34,350 ‫So the first column represents the permissions. 34 00:01:34,350 --> 00:01:37,230 ‫Who has the read and write permissions, okay? 35 00:01:37,230 --> 00:01:41,332 ‫We cannot see that in ls and also we again, 36 00:01:41,332 --> 00:01:45,810 ‫don't forget that we can see the hidden files and folders 37 00:01:45,810 --> 00:01:48,930 ‫which is one of the main reasons why we may want 38 00:01:48,930 --> 00:01:50,700 ‫to use ls -la. 39 00:01:50,700 --> 00:01:52,710 ‫Let's go to the second comment 40 00:01:52,710 --> 00:01:57,270 ‫which is ifconfig in which we can see the IP details 41 00:01:57,270 --> 00:02:00,780 ‫the local private IP details of the computer 42 00:02:00,780 --> 00:02:02,940 ‫that we are working with. 43 00:02:02,940 --> 00:02:06,330 ‫This is not our public IP address, okay? 44 00:02:06,330 --> 00:02:07,860 ‫And we're gonna see the difference 45 00:02:07,860 --> 00:02:10,170 ‫between public IP and private IP 46 00:02:10,170 --> 00:02:13,710 ‫or local IP addresses in the upcoming lectures. 47 00:02:13,710 --> 00:02:17,370 ‫But you need to know that you can actually execute 48 00:02:17,370 --> 00:02:20,100 ‫ifconfig and find your IP address. 49 00:02:20,100 --> 00:02:22,888 ‫In this case I have 10.0.2.15 50 00:02:22,888 --> 00:02:27,180 ‫and I have this net mask address and broadcast addresses. 51 00:02:27,180 --> 00:02:30,930 ‫So we are gonna learn about those in the upcoming lectures 52 00:02:30,930 --> 00:02:33,630 ‫but right now make sure that you know how to 53 00:02:33,630 --> 00:02:37,290 ‫get your IP address by running ifconfig, 54 00:02:37,290 --> 00:02:39,750 ‫and also one of the most important things 55 00:02:39,750 --> 00:02:42,450 ‫that we should learn is how to change the password, right? 56 00:02:42,450 --> 00:02:46,020 ‫Because you know, Root and TorKali, Kali, 57 00:02:46,020 --> 00:02:48,270 ‫they're all very bad passwords 58 00:02:48,270 --> 00:02:50,250 ‫and everybody knows them, right? 59 00:02:50,250 --> 00:02:52,710 ‫Even if you're using Kali 60 00:02:52,710 --> 00:02:54,630 ‫as a like a virtual machine 61 00:02:54,630 --> 00:02:57,470 ‫I believe you should actually change the password 62 00:02:57,470 --> 00:02:59,763 ‫of it in order to make it more secure. 63 00:03:00,720 --> 00:03:02,430 ‫So what we can do, 64 00:03:02,430 --> 00:03:05,160 ‫we can change the password of the Kali user, 65 00:03:05,160 --> 00:03:06,990 ‫or if you're using the custom 66 00:03:06,990 --> 00:03:09,840 ‫OVA custom Kali Linux for this course 67 00:03:09,840 --> 00:03:13,200 ‫you can change the password of the root user as well. 68 00:03:13,200 --> 00:03:15,510 ‫So I'm gonna show it with the Kali. 69 00:03:15,510 --> 00:03:17,610 ‫It's exactly the same command. 70 00:03:17,610 --> 00:03:19,500 ‫The command is very easy. 71 00:03:19,500 --> 00:03:22,170 ‫It's just passwd, okay? 72 00:03:22,170 --> 00:03:23,160 ‫So once you do that 73 00:03:23,160 --> 00:03:26,293 ‫it will ask you for your old and new password. 74 00:03:26,293 --> 00:03:28,080 ‫But I would actually keep that in mind 75 00:03:28,080 --> 00:03:30,510 ‫that if you are not using an English keyboard 76 00:03:30,510 --> 00:03:34,170 ‫like if you're using an Indian keyboard for example 77 00:03:34,170 --> 00:03:36,357 ‫when you write that, 78 00:03:36,357 --> 00:03:40,410 ‫make sure that you don't use any special characters. 79 00:03:40,410 --> 00:03:41,700 ‫So what do I mean by that? 80 00:03:41,700 --> 00:03:44,310 ‫It asks me for current password, right? 81 00:03:44,310 --> 00:03:46,230 ‫So I'm just gonna give it and hit enter, 82 00:03:46,230 --> 00:03:49,740 ‫It won't show up in here for security reasons 83 00:03:49,740 --> 00:03:51,270 ‫but for the new password 84 00:03:51,270 --> 00:03:54,300 ‫if you give something like a special character 85 00:03:54,300 --> 00:03:57,510 ‫then it would not be recognized when you log in 86 00:03:57,510 --> 00:04:00,990 ‫before you wouldn't have changed your keyboard by them. 87 00:04:00,990 --> 00:04:04,980 ‫So make sure you give like a simple, not simple password, 88 00:04:04,980 --> 00:04:08,402 ‫but simple letters and stuff over here 89 00:04:08,402 --> 00:04:13,402 ‫if you're not certain that your keyboard is going to work. 90 00:04:13,440 --> 00:04:16,590 ‫I know it's not a good password advice to have 91 00:04:16,590 --> 00:04:19,860 ‫like a password without special characters 92 00:04:19,860 --> 00:04:21,690 ‫but it's just the way it is. 93 00:04:21,690 --> 00:04:25,380 ‫Make sure you know your password and you can log in. 94 00:04:25,380 --> 00:04:28,890 ‫Otherwise you would be had to just delete it 95 00:04:28,890 --> 00:04:30,870 ‫and install it one more time. 96 00:04:30,870 --> 00:04:31,770 ‫So here you go. 97 00:04:31,770 --> 00:04:36,300 ‫Now I have typed my new password two times and hit enter. 98 00:04:36,300 --> 00:04:37,133 ‫Again, 99 00:04:37,133 --> 00:04:40,110 ‫the passwords do not show up for security reasons 100 00:04:40,110 --> 00:04:42,240 ‫but it actually writes them. 101 00:04:42,240 --> 00:04:46,620 ‫So make sure you write your password and hit enter. 102 00:04:46,620 --> 00:04:48,960 ‫So of course if you want 103 00:04:48,960 --> 00:04:53,010 ‫you can make it as complicated as you want but again 104 00:04:53,010 --> 00:04:56,190 ‫make sure that your keyboard is actually working 105 00:04:56,190 --> 00:04:59,640 ‫while you are logging in the Kali Linux. 106 00:04:59,640 --> 00:05:01,950 ‫That's how you change your password. 107 00:05:01,950 --> 00:05:03,900 ‫So if you change your password, 108 00:05:03,900 --> 00:05:05,690 ‫if you have learned 109 00:05:05,690 --> 00:05:09,243 ‫all this Linux stuff during this section then it's okay, 110 00:05:10,116 --> 00:05:11,531 ‫that it's great. 111 00:05:11,531 --> 00:05:13,590 ‫Of course there are lots to learn, 112 00:05:13,590 --> 00:05:15,300 ‫but I believe we 113 00:05:15,300 --> 00:05:19,500 ‫shouldn't turn this into kind of a Linux course. 114 00:05:19,500 --> 00:05:22,230 ‫So since we are learning cyber security, 115 00:05:22,230 --> 00:05:24,630 ‫since we are learning ethical hacking, 116 00:05:24,630 --> 00:05:26,070 ‫we will have much 117 00:05:26,070 --> 00:05:30,960 ‫more opportunity to actually exercise these commands. 118 00:05:30,960 --> 00:05:34,800 ‫So we will continue to learn during this course 119 00:05:34,800 --> 00:05:37,650 ‫in the upcoming sections anyway. 120 00:05:37,650 --> 00:05:39,480 ‫Maybe for the last thing 121 00:05:39,480 --> 00:05:42,570 ‫I can show you the up arrow things. 122 00:05:42,570 --> 00:05:45,030 ‫So if you write any command okay, 123 00:05:45,030 --> 00:05:46,740 ‫inside of the terminal 124 00:05:46,740 --> 00:05:50,280 ‫if you write any comment and hit enter and execute it 125 00:05:50,280 --> 00:05:52,110 ‫then you can reach the same command 126 00:05:52,110 --> 00:05:56,130 ‫by hitting on the up arrow on your keyboard, okay? 127 00:05:56,130 --> 00:06:00,300 ‫It shows you the latest command and if you just hit it again 128 00:06:00,300 --> 00:06:02,130 ‫you will see the history. 129 00:06:02,130 --> 00:06:06,039 ‫Like I'm just gonna run clear and if I hit 130 00:06:06,039 --> 00:06:10,350 ‫as you can see, I see the clear, I see the ifconfig. 131 00:06:10,350 --> 00:06:14,970 ‫So this trick as well, you can use this as many as you want. 132 00:06:14,970 --> 00:06:18,172 ‫Don't forget you can't do tab for auto completion as 133 00:06:18,172 --> 00:06:19,740 ‫well like this. 134 00:06:19,740 --> 00:06:23,130 ‫So this will just increase your speed when you 135 00:06:23,130 --> 00:06:26,700 ‫work with terminal. Okay so we're gonna stop here, 136 00:06:26,700 --> 00:06:29,073 ‫and continue within the next section.