1 00:00:00,810 --> 00:00:04,330 This is our first video of the offensive cyber operations series. 2 00:00:04,350 --> 00:00:11,490 And today we will be talking about counseling's command line since almost all of our videos will be 3 00:00:11,490 --> 00:00:12,670 done from Kelly. 4 00:00:12,720 --> 00:00:14,410 We need to get comfortable with that. 5 00:00:14,430 --> 00:00:18,860 First, let's talk about some of the Linux directories. 6 00:00:19,920 --> 00:00:22,730 The first one is the slash for Slash. 7 00:00:22,740 --> 00:00:30,690 Then this directory holds the basic programs such as Ellas CD Cat. 8 00:00:32,060 --> 00:00:40,430 For instance, if I do force flush bin and then first flush again, unless, of course, there's nothing 9 00:00:40,430 --> 00:00:43,190 here in our directory, there's not going to show anything. 10 00:00:43,880 --> 00:00:53,090 So if I do this again with an argument of L.A., it will give you some details about the size and groups 11 00:00:53,090 --> 00:00:54,350 and users permissions. 12 00:00:54,950 --> 00:00:56,130 We will get to that later. 13 00:00:57,980 --> 00:01:01,160 The second one is the forest as Ben. 14 00:01:07,930 --> 00:01:16,120 Four such as Ben, and then if we click on the tab again and you're on your keyboard, you will get 15 00:01:16,120 --> 00:01:24,580 a lot of possibilities here, a lot of programs, the S-Bahn whole system programs such as Disc, SMK, 16 00:01:24,580 --> 00:01:27,070 AIFS says CTL. 17 00:01:29,440 --> 00:01:41,080 So if we do for a special spin and NKF, as we notice, it's it exists there and then the third one 18 00:01:41,080 --> 00:01:43,090 is the Forest Fash Etsi. 19 00:01:46,700 --> 00:01:56,830 This one has the configuration files of your Linux operating system, the next one is the fourth tenth. 20 00:01:58,130 --> 00:02:06,490 This one is a temporary directory and usually has the content of anything temporary or downloading or 21 00:02:06,530 --> 00:02:08,600 some of the applications that are using. 22 00:02:09,200 --> 00:02:13,280 And usually it's deleted on when you reboot your computer. 23 00:02:16,200 --> 00:02:26,550 Next is the one for us, the USSR, then this one holds some of the applications like Unmap or Apte 24 00:02:30,510 --> 00:02:31,190 like this. 25 00:02:32,490 --> 00:02:38,280 So we noticed the like we noticed the map exists in the user bin and map. 26 00:02:41,380 --> 00:02:47,290 Let's have a practical examples of some of the essential commands that we will be using a lot on most 27 00:02:47,290 --> 00:02:52,750 of the Unix or Linux operating systems, the first command is the ALA's. 28 00:02:53,680 --> 00:03:02,080 So in this directory, if we do Ellis' and then help, we get a lot of arguments with it. 29 00:03:03,450 --> 00:03:11,820 But the one that we are really interested in is the Ellis Dash, like this one gives you a lot of information 30 00:03:12,660 --> 00:03:16,800 when we're using the Dash A, it shows all the hidden files. 31 00:03:18,090 --> 00:03:25,410 So if we go to the home directory and we will get to that later and we use the Ellis Dash L-A, it will 32 00:03:25,410 --> 00:03:34,050 show us some of the hidden files and directories that that Shell will show us all the permissions and 33 00:03:34,470 --> 00:03:41,500 the file size of your folders and files here. 34 00:03:41,910 --> 00:03:52,590 We also get the user permissions like the first part, D-R, W X, RDX, RDX, that's that's the permission 35 00:03:52,710 --> 00:03:53,350 of the files. 36 00:03:53,370 --> 00:03:54,990 Of course, we don't have anything here. 37 00:03:55,980 --> 00:04:00,390 We will get to that later when we use the touch command to create some files first. 38 00:04:03,120 --> 00:04:11,050 So let's clear the screen and create some files, we're using the touch command to create an empty file. 39 00:04:11,520 --> 00:04:17,730 We can go we can call it stuff, one or stuff, too, or whatever you want. 40 00:04:18,870 --> 00:04:28,140 And if you use the Ellis Daschle again, it will show us this file stuff once it has a permission of 41 00:04:28,140 --> 00:04:31,830 user of it and groups of ulcerate. 42 00:04:32,400 --> 00:04:34,590 We will get to the permission later. 43 00:04:36,570 --> 00:04:38,640 Now let's navigate. 44 00:04:39,510 --> 00:04:45,330 We will navigate the links operating systems using the CD Command or change directory. 45 00:04:45,360 --> 00:04:47,610 It's the same thing even on Windows. 46 00:04:48,510 --> 00:04:57,690 So if we do cede space and then we type here the name of the directory, we have to provide the path, 47 00:04:57,690 --> 00:05:06,000 the absolute path of that directory, or if the directory already located in our folder here, we don't 48 00:05:06,000 --> 00:05:08,870 have to provide the absolute path. 49 00:05:09,510 --> 00:05:10,560 Let's take an example. 50 00:05:11,340 --> 00:05:20,280 If I want to change my daughter to go to the first user share, then if you notice here, the prompt 51 00:05:20,370 --> 00:05:25,380 changed to from offtakes psyops to user share. 52 00:05:27,180 --> 00:05:35,220 If you want to make sure where exactly we are located and we just type W.D. or print work directory 53 00:05:36,690 --> 00:05:38,840 tells you we are on the user share. 54 00:05:40,770 --> 00:05:50,150 Now if we go to and type C D space, the tilde, this one next to the number one. 55 00:05:50,970 --> 00:05:57,900 So we have to use that using your click dial, using the shift command like shift on your keyboard and 56 00:05:57,900 --> 00:05:58,830 then the tilled. 57 00:06:00,180 --> 00:06:03,120 This means we want to go to the home directory. 58 00:06:03,630 --> 00:06:12,510 We can use this a lot if we are if you're writing a scripting because instead of your some users have 59 00:06:12,510 --> 00:06:16,670 a long name, their usernames, they are very long. 60 00:06:17,010 --> 00:06:25,320 So if you want to go to your home directory, you don't have to go to like this Khedive home and then 61 00:06:25,320 --> 00:06:29,200 your username, you can just simply type code space, Tilde. 62 00:06:30,300 --> 00:06:38,070 Let's try now, if you do that again, it shows that we are in the root directory, which is our home. 63 00:06:40,270 --> 00:06:50,440 The next one is let's first go to our sex psyops directory, Clearstream, let's make a directory here, 64 00:06:51,550 --> 00:06:55,870 make dire stuff or let's make it psyops. 65 00:06:57,670 --> 00:07:05,350 L'Estang latest show, Everything in our current directory, we see the stuff, one file and then the 66 00:07:05,350 --> 00:07:11,630 side office directly if we notice this D letter in the very beginning. 67 00:07:12,220 --> 00:07:14,920 This means this is a directory, not a file. 68 00:07:17,470 --> 00:07:25,990 Now let's create multiple directories at the same time that we do that by the same Comen, M.K. Dir 69 00:07:26,410 --> 00:07:31,090 and then stuff one of two stuff. 70 00:07:31,390 --> 00:07:37,000 Three, notice that we are just providing spaces between the names. 71 00:07:37,810 --> 00:07:44,590 If we click enter, it says stuff already exists, so we have to remove that. 72 00:07:46,210 --> 00:07:48,160 We just create stuff to sell three. 73 00:07:51,650 --> 00:07:54,590 Oh, stuff, too, we already really created that. 74 00:07:55,280 --> 00:07:56,590 Let's do this again. 75 00:07:59,360 --> 00:08:07,910 So now we have we really had stuff, one from before, that's the file oh, we created the PSYOPS guys 76 00:08:07,940 --> 00:08:09,780 as directory, not stuff. 77 00:08:10,250 --> 00:08:14,690 So now when we created stuff to install three, it did that here. 78 00:08:14,690 --> 00:08:17,960 And it has the D letter in the beginning of the permissions. 79 00:08:19,610 --> 00:08:26,300 So we have stuff to stuff right now, let's remove a directory, how do we do that? 80 00:08:27,050 --> 00:08:30,250 We will do that simply by using the R.M. command. 81 00:08:31,280 --> 00:08:40,430 It's for remote, so we do our own dash R.F. for force, and we have to tell it that this is a directory. 82 00:08:40,430 --> 00:08:51,650 So that's our F and then the name of your directory stuff, one stuff, one here is not a directory, 83 00:08:51,650 --> 00:08:56,690 so we can't remove it using this name. 84 00:08:56,690 --> 00:08:59,420 I'm just giving an example, but we still can remove it. 85 00:08:59,420 --> 00:09:05,830 The R and R if you can remove files or also you can also remove directories. 86 00:09:06,440 --> 00:09:08,900 So let's try to remove the directory itself. 87 00:09:09,260 --> 00:09:13,790 Stuff to enlist dash Palladin. 88 00:09:14,510 --> 00:09:15,110 It's gone. 89 00:09:15,680 --> 00:09:18,710 Same thing with the stuff. 90 00:09:18,710 --> 00:09:29,420 Three, it's gone now if we want to create a directory but it has the name of the directory has spaces 91 00:09:29,420 --> 00:09:29,770 in it. 92 00:09:30,410 --> 00:09:39,410 So if I do make Dyar space and now the folder or the directory I want to create has some spaces in it, 93 00:09:40,160 --> 00:09:51,320 like for instance, if I want to do my space stuff folder, this is going to create a directory called 94 00:09:51,320 --> 00:09:57,130 My and another one called Stuff, another one called folder above. 95 00:09:57,170 --> 00:10:03,920 But if we want to create it using the spaces in between, we have to surrounded by double quotes, put 96 00:10:03,920 --> 00:10:14,480 double quotes here and double quotes at the end and click enter lists that again we see this, our creative 97 00:10:14,490 --> 00:10:16,550 directory called My Stuff folder.