1 00:00:06,860 --> 00:00:12,380 Let's use the first few Linux commands at our command line terminal in our Kalli Linux box. 2 00:00:13,930 --> 00:00:20,320 So once you've opened up Oracle Virtual Box, find your Caleigh Linux should be saved in its previous 3 00:00:20,320 --> 00:00:20,860 state. 4 00:00:21,280 --> 00:00:22,330 We're going to start at. 5 00:00:23,970 --> 00:00:30,480 And if you've let your Linux machine log out, all you have to remember is route and tour T, double 6 00:00:30,480 --> 00:00:31,110 o r. 7 00:00:32,170 --> 00:00:37,450 And we sign signed into our Kelly Linux box and remember, if you ever forget that, it's down here 8 00:00:37,450 --> 00:00:44,140 in the description in Oracle Virtual Box, I'm going to go to full screen so that we can see this better. 9 00:00:48,960 --> 00:00:49,450 We go. 10 00:00:50,090 --> 00:00:52,310 And in Kelly Lennox, I'm going to open the terminal. 11 00:00:53,000 --> 00:00:54,680 That's over here on the left hand side. 12 00:00:55,070 --> 00:00:58,700 Or you can go up to applications and come down to useful applications. 13 00:00:59,360 --> 00:01:02,730 And then you can see accessories and Internet office. 14 00:01:02,750 --> 00:01:04,520 You can see lots of different things down there. 15 00:01:05,000 --> 00:01:08,570 The easiest way to grab it is from here at the command line terminal. 16 00:01:10,330 --> 00:01:11,620 And we're going to zoom in. 17 00:01:13,640 --> 00:01:17,520 Till our command line terminal almost fills up the screen, just so we'll be able to see everything 18 00:01:17,520 --> 00:01:19,140 pretty clearly as we do each of these. 19 00:01:19,650 --> 00:01:24,360 Well, when I'm first logged in as my route user, if I do an L. 20 00:01:24,450 --> 00:01:25,110 S. 21 00:01:25,260 --> 00:01:27,000 That is directory listing. 22 00:01:27,450 --> 00:01:33,570 It will tell me that I've got all my home files and I can see that I'm in as route on my Caleigh host. 23 00:01:34,050 --> 00:01:41,100 And that, Tilde, just means that I'm in my home directory or my users working profile directory. 24 00:01:41,610 --> 00:01:48,060 So when I do an LSD, I can see that just like on a Windows machine, I have desktop downloads, pictures, 25 00:01:48,060 --> 00:01:48,990 videos, music. 26 00:01:49,320 --> 00:01:53,730 All of these are defaults under each user in Linux, just like we'd see in Windows. 27 00:01:54,410 --> 00:01:59,750 There are some other commands, though, that we can do with or some there's some other options we can 28 00:01:59,750 --> 00:02:01,470 have with the Ellis' command, like L. 29 00:02:01,530 --> 00:02:02,610 S Dash. 30 00:02:03,230 --> 00:02:03,640 Hey. 31 00:02:03,770 --> 00:02:07,710 And this is going to show all the files, not just the ones that are visible. 32 00:02:07,710 --> 00:02:09,210 This shows hidden files. 33 00:02:09,780 --> 00:02:15,240 So we can see their folders like Dot Dot and their are files like Bash History. 34 00:02:15,780 --> 00:02:17,370 There are hidden files in here. 35 00:02:17,370 --> 00:02:21,480 There's some public files and then we have directories as well. 36 00:02:21,840 --> 00:02:27,090 You can tell on my Caleigh Linux box right now, by default, the directories are showing in a slightly 37 00:02:27,090 --> 00:02:28,500 different color from the files. 38 00:02:28,770 --> 00:02:31,890 That helps me know that documents and desktop are folders. 39 00:02:32,400 --> 00:02:33,550 So if I say L. 40 00:02:33,550 --> 00:02:36,030 S Dash L. 41 00:02:37,090 --> 00:02:41,780 And those are L's in both those locations on an Atlas Dash one less dash l. 42 00:02:42,400 --> 00:02:46,100 I can list a slightly different way so that I see directory. 43 00:02:46,330 --> 00:02:48,940 And then I see the desktop is colored like a directory. 44 00:02:49,270 --> 00:02:51,250 That is my actual desktop folder. 45 00:02:51,490 --> 00:02:53,890 Just like I would have on Windows documents. 46 00:02:53,890 --> 00:02:55,450 The same thing as a directory. 47 00:02:55,810 --> 00:02:59,770 And these are whether they're readable or rideable for each. 48 00:02:59,870 --> 00:03:03,160 For first of all, the owner and then for my group. 49 00:03:03,250 --> 00:03:05,170 And then for everybody or the world. 50 00:03:05,560 --> 00:03:07,270 So anybody can read this folder. 51 00:03:07,300 --> 00:03:08,830 Who has access to this machine? 52 00:03:09,220 --> 00:03:15,760 Anybody from my group can read and run files inside these directories, and I can read and write. 53 00:03:16,830 --> 00:03:22,650 So this l'Est Ash El gives us a long listing, so it gives every bit of information about these and 54 00:03:22,650 --> 00:03:27,630 you can see I have I've created a file down here, Will, we'll do a little bit more with files and 55 00:03:27,630 --> 00:03:29,910 a little bit, but that's just a regular file. 56 00:03:30,210 --> 00:03:32,130 If I combine those two, I can say L. 57 00:03:32,190 --> 00:03:34,410 S space Dash eight L. 58 00:03:35,810 --> 00:03:36,470 And hit enter. 59 00:03:37,470 --> 00:03:41,050 And you say I get a long listing of all the files. 60 00:03:42,240 --> 00:03:50,460 So Ellis Dash A-L gives me a long listing of all the files, including hidden files and hidden folders. 61 00:03:50,730 --> 00:03:52,980 And you can see we have some hidden files. 62 00:03:53,400 --> 00:03:57,570 Your Basche history is just the history of all the commands you've entered into your shell. 63 00:03:57,960 --> 00:04:01,970 This Basche shell just gives us a way to keep track for this batch. 64 00:04:02,010 --> 00:04:03,840 History gives us a keep track. 65 00:04:03,900 --> 00:04:08,040 A way to keep track of all the Linux commands that we've entered in the shell like this. 66 00:04:08,150 --> 00:04:09,780 Ellis Dash A-L. 67 00:04:09,810 --> 00:04:12,090 We call it our command line shell in the terminal. 68 00:04:13,770 --> 00:04:16,710 And when I get a full screen like this, I'll show you one bonus thing that's handy. 69 00:04:16,730 --> 00:04:17,270 Clear. 70 00:04:18,680 --> 00:04:21,050 It clears the screen back up so we can come back up to the top. 71 00:04:21,080 --> 00:04:24,050 So Ellis shows us all of our files. 72 00:04:24,110 --> 00:04:30,590 Ellis Dash A-L shows us everything, including hidden files and along listing and clear. 73 00:04:31,430 --> 00:04:33,920 We'll just bring us back up to clear terminal screen. 74 00:04:35,240 --> 00:04:40,340 So let's change directories inside one of those folders, c.D Space. 75 00:04:40,580 --> 00:04:42,050 And let's go to our desktop. 76 00:04:44,150 --> 00:04:48,980 So c.D will change directories, c.D Space and the name of a folder. 77 00:04:49,310 --> 00:04:51,690 Well, let's show you a shortcut that will help us as well. 78 00:04:51,870 --> 00:04:56,240 Oh, and changing directories back up one c.D space dot dot. 79 00:04:56,840 --> 00:04:59,390 The two dots will take us back up one directory. 80 00:04:59,420 --> 00:05:03,230 That's like hitting the up arrow when you have a graphical user interface for your files. 81 00:05:04,820 --> 00:05:13,190 So if I say c.D space d e if I start a capital D in a lowercase E capitalization does matter in Linux 82 00:05:13,680 --> 00:05:13,980 C. 83 00:05:14,050 --> 00:05:14,490 D. 84 00:05:14,720 --> 00:05:15,860 Space Capital D. 85 00:05:15,860 --> 00:05:16,400 Little E. 86 00:05:16,400 --> 00:05:24,260 And then hit the tab key and you'll notice that it auto fills for me and I can see space dot dot to 87 00:05:24,260 --> 00:05:29,180 go back up a directory c.d space D little o notice via tab. 88 00:05:29,180 --> 00:05:30,140 It doesn't do anything. 89 00:05:30,300 --> 00:05:34,580 If I hit tab twice it tells me there are two folders, documents and downloads. 90 00:05:34,580 --> 00:05:36,050 So I need one more character. 91 00:05:36,470 --> 00:05:42,620 I want to go into my documents folder, C.D. Dock Tab and the tab key will help you autofill anytime 92 00:05:42,720 --> 00:05:47,600 you're surfing through directories or trying to find specific files. 93 00:05:47,960 --> 00:05:52,250 That's a really helpful autocomplete feature in Linux and in Windows. 94 00:05:52,250 --> 00:05:53,180 We'll see that as well. 95 00:05:53,750 --> 00:05:56,990 So if I see in the documents, I can see them in the documents folder. 96 00:05:57,260 --> 00:05:59,930 If I just press c.D and hit enter. 97 00:06:00,950 --> 00:06:03,980 Notice it takes me back to my tilde or my home directory. 98 00:06:03,980 --> 00:06:06,630 If I do an Ellis here, I'm back home. 99 00:06:06,650 --> 00:06:12,280 I'm back up one directory, c.D space dot dot always six you up one directory c.D. 100 00:06:12,350 --> 00:06:18,980 And then nothing c.D just by itself in Linux will take us to our user directory, our home directory. 101 00:06:19,340 --> 00:06:22,220 So it's a handy thing to be able to do from the command line. 102 00:06:22,940 --> 00:06:24,250 Let's clear the screen. 103 00:06:26,620 --> 00:06:28,090 And do a couple more commands. 104 00:06:28,450 --> 00:06:31,300 Let's try to find out what kind of computer we're running on. 105 00:06:31,330 --> 00:06:32,360 So what do you name? 106 00:06:33,580 --> 00:06:34,590 Dash A. 107 00:06:34,960 --> 00:06:36,220 This is our Unix name. 108 00:06:36,780 --> 00:06:37,780 Our hostname. 109 00:06:38,260 --> 00:06:44,110 We can say I'm running on a Caleigh Linux, four point nine on an HMD 64 Debian Linux. 110 00:06:44,560 --> 00:06:48,310 So we can see a lot of information about the operating system that this computer's running. 111 00:06:49,970 --> 00:06:51,860 Let's do another command history. 112 00:06:54,030 --> 00:06:57,230 And we'll see all the things that I've done in my history. 113 00:06:59,750 --> 00:07:00,650 That was history. 114 00:07:03,340 --> 00:07:07,990 And let me show you another really useful feature in Linux and Windows, both from the command line, 115 00:07:07,990 --> 00:07:09,610 if you'll just hit your up arrow. 116 00:07:10,570 --> 00:07:12,790 Do you see you get your last few commands. 117 00:07:14,710 --> 00:07:20,320 So if you want to go back and redo a command, all you have to do is sit you're up arrow and then down. 118 00:07:20,320 --> 00:07:22,360 We'll take you back to where you are. 119 00:07:22,860 --> 00:07:25,840 So you up and down arrows will give you a shortcut to go back in your history. 120 00:07:26,170 --> 00:07:28,090 So we've hit four really cool commands. 121 00:07:28,200 --> 00:07:31,840 Ellis c.D, the you name to get our Unix name. 122 00:07:31,990 --> 00:07:32,980 And then history. 123 00:07:33,340 --> 00:07:38,140 And then we've seen how we can use TABD Autofill and the up arrow and down arrow to repeat a command 124 00:07:38,140 --> 00:07:39,520 if we need to from our history. 125 00:07:40,150 --> 00:07:42,910 We'll see even more in the next lesson.