All right, thank you all for your patience. We are about to officially start. Good afternoon slash morning. It is an honor to introduce DJ Davis, a seasoned IT professional whose career began on IBM mainframes and mid-range systems and expanded to encompass systems engineering, network design, and information security. DJ holds a bachelor's and a master's degree in business information systems and currently works in the Washington, D.C. area helping others navigate complex IT ecosystems. With decades of experience and a passion for mentoring, DJ has made it his mission to reduce the intimidation factor that often surrounds Linux. His talk today, Let's Lose the Shock, Mystery of Linux, offers a pain-free introduction to Linux and compares his features to those of Microsoft Windows. If you ever felt hesitant to dive into the Linux world, this is your chance to change that. Please join me in welcoming DJ Davis. Awesome, welcome. Hey, George. Well , welcome. Thank you, everyone, for coming to the Blacks in Cyber sessions and presentations. And thanks for coming to DEF CON because, you know, we have a lot of fun here. And hopefully we'll have a lot of fun today as we lose the shock value of Linux. Are y'all ready to have some fun? All right, all right, all right. So let's get started into this. I'll tell you, well, we see the objectives that we have for this. So, you know, this is an overview awareness. We're not going to go into all commands and that kind of stuff. We're not going to be boring. But, you know, we're going to talk about the difference, you know, between Microsoft Windows and Linux and what have you. And look into a few of the features and things of this. So this is our game plan for today. We're not going to go heavy into comparing distributions. Let's say that all of the distributions are good. You know, you pick the one that you like and then you pick another and another. Have a lot of fun with this. So we're going to have installing Linux in the appendix. You'll be able to go there and see that. And this slide deck will be on GitHub. So it's there for you. Maybe we'll see if we can hold the questions until the end of this. Just keep this moving. And my usual disclaimer is that this is not affiliated with work. You know, these are my ideas. However, you know, work is like fine, cool with me being here. You heard a little bit about my background. We're not going to spend much time with this. But, you know, just in different areas of computing, whatnot. And currently, you know, I work in IT security in that sector. Lots of fun there. My alma mater, VCU, go Rams. Pretty good school. So there are a lot of reasons to learn and to use Linux. So a lot of them are listed here. I'll just focus on a few toward the bottom of this. It's great for learning about, you know, how computers work and using different kinds of languages. You know, on a small machine, you can load a whole bunch of languages. I do. So it's a great operating system to see how, you know, things work into detail. We'll have a little bit of detail here. It's good for hardware and software hacking. So pretty soon, if you're not doing that, you will be. Linux has a rich set of commands. I love some of the commands. I mentioned DD and grep. For no reason other than that, I think it's a good reason to use Linux. And essentially, it's a very stable, reliable, and powerful OS that is like a free version of Unix. Unix, did I say? So what's special about Unix? Unix gets into, you know, why Linux is around. So Unix was the first portable, and that's an interesting word, portable operating system, and portable means to copy it from one place to somewhere else. That was the first operating system that came out, and they were able to do that with. There's a modular design. That's pretty good for several reasons. And Linux, or Unix, started with inter-process communication. Microsoft uses this too, because if you've ever used a command prompt, you use that pipe thing. Yeah, Microsoft borrowed that from Unix at the time. You have input and output redirection. We see that less than, greater than, sign, those types of things. And there are three files that are opened automatically for each process. Standard in, standard out, and standard error. Okay, so this is a partial list of Linux distributions. You might see your favorite one on the list. You know, pick any of these or pick other ones. So, some differences between the commands of Linux and Microsoft. Yeah, the green Linux shows somewhat on this slide. But, so basically, we have the clear, C-L-E-A-R, for clearing the screen, versus the C-L-S. You know, you grow up on that, and you get used to that in Microsoft, the C-L-S. How we separate parts of a file. Linux uses the forward slash. Microsoft uses the backslash. Then there is that fun thing about null versus null. It's, you know, N-U-L on Microsoft, and it's dev or device null, N-U-L-L, for Linux. There are some other differences in this command, in these commands, as you see here. You know, just how you do different things. Some of these, the commands might be the same, but the operation might be a little different. For example, changing a directory CD. That can work a little bit differently in both of those. Linux does have a live distribution, and you can run that off of a USB. I don't think you can do that that often with Microsoft. Although they do have some type of third-party thing that you can get, buy, or what have you. One nice thing that Microsoft does have is the pause command. And on here, we show how you would implement that in Linux. You know, you use the read command and a few options. That's here on the slide, and these would be, you know, available. There are other differences in things, you know, between the two operating systems as we see here. In Linux, you tend to work more with the command line. You tend to work more with the GUI in Microsoft. Linux has a lot of free languages and things that are available. Not so much. Well, you do have some in Microsoft. And so that support is getting a lot better. Scripting is a little bit different as well, because you generally script with Bash in Linux, but you can script with other things as well. Microsoft is going to be, you know, using the PowerShell or using the command prompt. Some other differences. The super user account in Linux's root in Microsoft is administrator. Now, in Microsoft, you can change that. You cannot change that in Linux. I wouldn't recommend trying to do that. You'd have to change a lot of underlying stuff to change that. And we'll look at the general format of the commands. It's not too difficult to work with, but there are just some things to be aware of. So, where did Linux come from? We outlined this in the slide right here. And so it began in 1969. AT&T, Bell Labs, they wanted to come up with a new operating system. In that same year, coincidentally, Linus Torvos was born. 1969. So, in the late 1970s, AT&T decided to release Unix for universities and some commercial use. Before then, it was used only by AT&T. In 1987, not sure if you heard of this part. This gentleman named Andrew Tannenbaum wrote an operating system called Minix. And that kind of mimicked the operation of Unix. But he had that for educational purposes. In 1987, he came out with this book here, Operating Systems, that had some of the code in it. And this book was used by universities and places like that. I happened to see this book at least a few years later after that. I was hanging out in the Philippines for a while and I went in a bookstore. And they had a second printing of that. And it was a nice book and I purchased it. It's in my garage someplace. I looked for it. I can't find that book. But it's a nice book to have. So, in 1988, we have Linus Torvos who attends the University of Helsinki. He goes away for a little while and starts coming back. Anyway, Linus gets a copy of the book, the software, and he starts playing with it. He creates the Linux kernel. The other notable thing about the Linux kernel is that he changed the license of it to GNU Project. That way, you'd be able to sell it and whatnot and use it more for commercial use. That's basically how Linux came about from Unix. And we had that book about the operating systems. So, what is Linux? We're going to talk about what it is, what it's not. We know that it's an operating system. Linux has a kernel. And that kernel is the main thing that Linus Torvos works on. There are other pieces of it as well. The system bootloader. Several different types of bootloaders. And they're pretty good bootloaders. Grub. One nice thing about the Linux bootloaders is that they're good at loading in Microsoft Windows as well. So, dual boot. You would tend to put Linux on there first. So, you have the command line interpreter. Most of us know about Bash. You know, it could be any of these other ones we list. We have the SH shell. KSH shell, I believe, is for people who do systems development more. They would like that. There is the Bourne shell. Here is why I mentioned all of these. I mentioned the Bourne shell. What does Bash stand for? Bourne. Again. Shell. So, that's how we get Bash. You can have a graphics interface, you know, the GUI. And then you have package managers. It can be typically one of two types of package managers. You have the Red Hat one. We have the RPM, the YUM, all of that stuff. Or it can be typically out of the Debian affair where you have the APT. So, you tend to have one or the other. You have startup scripts. And I mentioned two here because it's going to be one of these two. You know, the system v, vinit, or the system d. The system d is, you know, the newer one that you tend to see on most systems. So, Linux, you have a file system. And I list ext3, which you probably won't see, ext4. And there are a number of other ones that btrfs is kind of new. Also, I decided to list FAT32, FAT64, because when you have things like these flash drives, you know, you're kind of using that. And Linux has other utilities and things that are involved with it. So, what the kernel is, what the kernel does. Basically, it is the central core of the machine. You know, it allocates the memory, does CPU scheduling, the IO, all of these things that we have here. And we list some of the kernel features, especially to allocate memory and to allocate the time of the CPU. Most of our computers now have multiple processes. So, the kernel schedules that. And you can see, you know, different processes being used. Okay, what is not in the kernel? And I believe this is important. The command line interpreter is not in the kernel. The GUI is not in the kernel. Commands, utility programs, those are not in the kernel. User programs. Now, sometimes hardware drivers, file systems, and these other things might not be in the kernel. They might or they might not be, depending upon what they are. Some of them can be loadable and unloadable. And so, those are not, you know, written into the kernel per se. But the kernel can connect to them. So, this is the current Linux kernel. It's out, you know, they update this, you know, pretty often. This version is out, I believe it was July 27, this latest version came out. So, where do we find the version of the kernel? And that's going to be in the slash boot directory. We're going to look more into the different directories and things in a little bit. If you're in Linux, you can see it by running the uname command. And there are different varieties of the command. You put one switch on it, the minus R, and then you get that little name. The big switch, minus A, you get all of, you know, where the kernel is. In terms of the source code of the kernel, we list where that is. You can go and take a look at it. Interesting thing about it, I believe it says it's 98 point something percent C code. And on GitHub, it lists what the other variants of it are. And by the way, it is very good, very well written C code. Every time I look at it, I'm envious. I'm like, I've never seen C look this good. But yeah, they do a very good job at writing that. Okay, so here's a little illustration that we have that talks about some of the things that are in the kernel. And we call this the syscall because, you know, system calls. So, we see this directory path. Don't worry, you know, you have copy of the slides. But this directory path has some of the different files of the system calls. And I highlight where they are. It's a little tricky finding these because there is also a file called syscall.h, a header file. But the files are not really listed in there. And so, I guess when you're compiling, the kernel is winding through all of this stuff to find it. So, the unistd, we have it for 64-bit and 32-bit. These are where we can find the different syscalls of the kernel. So, take a look at a few of these in unist32. I highlight two of them. One is the exit, and that's going to be syscall number one. I highlight the right, syscall number four. You see a few other ones too. You see the open and the close. You see the read in addition to the write. You're wondering, why is DJ mentioning this? Okay, let's go to the next slide. Okay, so, strace is a nice utility that prints out where a program does its system calls. And basically, we run this by saying the program is an assembly language program. HelloASM. And all it does is basically print hello world. Most of us are familiar with that. The first thing that you generally do in a language is find out how you print something, hello world, and you do that. And so, this is the strace of hello world. There is not a whole lot there. And it basically does three system calls. The first one to get in there and start running. The next one, we're going to do a write. And it tells the OS how much it's going to write. And we do an exit. So, I bolded the system calls in red. When you see the assembly program over there, you see how we're moving things into a few registers. And we call the routine. And so, that directly reflects what we see in the strace. So, that's for a little assembly language program. Let's take a look at the one for the C program. And again, don't worry, not an eye exam. You have the slides from this. So, we see a couple of things in here. We see that there are a whole bunch of system calls. One of the reasons why C, like other languages, has a standard library. That standard library does a lot of stuff. Now, don't worry about all the stuff that it does, because this program actually runs quite quickly. You know, a couple of milliseconds. But it does all of these system calls to get things done. One thing that I will say about the standard library that is unique is that it does buffered I-O. Buffered I-O is very good. Here's why. I'll see if I can cursor up to this assembly program for a second. You see, if we're writing this in assembly, we're not going to be doing this often. But if we were doing this, we would do a little something, and then we would do a system call. We might build something else, print it with a system call. System calls are relatively expensive, because the computer has to do things, and saving the state of where it is, transferring control to the operating system, and all of that. Now, I mean, it does this, you know, hundreds of thousands of times a second. But still, it's a relatively slow process. But C, the C library does buffering, so it takes all of this stuff, and puts it in memory, and writes it out in one operation. So, it's a lot more efficient to do that. So, you know, that standard library is good. But still, we see how it's doing things like opening files, and things like that. Um, we mentioned standard in, standard out, and a standard error. I think we said those files are automatically open for you. And when we take a look at this, we actually see these numbers in here. When the standard library goes to open a file, it picks file number three. Why file number three? Because zero is always standard in, um, one is always standard out, and two is always standard error. C knows that, and so it knows where to start picking its files. Anyway. So, how to log in. We're not really going to talk about logging into Linux. But let's talk about the run levels. Because the run levels are important for how we do log in. Whether or not it is, you know, a CLI, you know, a tech screen. Or whether it's the GUI. And so there are different run levels. All the way from shutting down the computer to single user, multi-user, GUI. And we see run level six. You can tell the computer, run level six. And if you have like, um, root privileges, you know what it's going to do? Reboot. Because that's what run level six is. It loads in those scripts. I say a little something about Ubuntu in here. Because they do several of the run levels, you know, it's going to be like five. No matter which one you pick. Several of them, Debian, Ubuntu, is going to be like, you know, going into, um, into the GUI. So, what's available in the GUI? Here is a list of, you know, the different programs. A lot of the stuff that we would see on a Windows system is there. Different names of the program, because different people write that. But they're all free. Using the terminal, when you go into the CLI. These are just some of the commands that you would try. And I'll mention a little something about each one of these. So, the date command, you know, it's going to tell you the date. In Windows, you have the date command to give you the date. The time command to give you the time of day. That's not exactly the same way it is in Linux. The date command will give you the time and date. Because the time command will actually time how long it takes a program to run. How much time it spends in system space. How much time it spends in user space. If you type in time on a Linux system, don't worry. It's just going to come back and say you didn't put in a program or whatnot. Uptime tells you how long the computer has been running. It's a lot easier to find that in Linux than it is to find it in Windows. Sometimes you have to look on a Windows system and try different things to figure out how long has the server been up. There are other commands. Say we have the who command. You put different options on it. And by the way, the options, we call those, we might say minus A. We might want to say like dash A. But Linux people, they generally say minus or whatnot. That's okay. Using the terminal, you can string commands together. Put in that semicolon. That's a separator. Ps for processes. It's funny how people in Unix just abbreviated stuff. It's like they don't like to type. You know, they tend to type very fast, but they have shorthand commands. And it's all typically in lowercase. Case matters totally in Linux. I know, the case can be annoying. But yeah, it matters. And so you make sure that you get that exactly correct. Other things for using the terminal. Windows, well, Linux has its own help system. And we call those the man pages. Man is short for what? Manual. So the man pages, just about every command has an entry in it. You might find a few things that don't. It's kind of funny. At that point, you just go Google. Whoever designed the package, for whatever reason, didn't create a man page. DF disk free. And you can give it different options. I like the minus H option on DF because it gives you what stands for human readable. So it'll give you the file sizes and KB, MB, and those types of things. Just whatever is usable at that point for the size of it. Okay. So this is how the file system is laid out. We mentioned forward slash. And that's root. A few directories hang off of root. And we list them here. For example, the boot. Remember we were saying when you boot up the system, the kernel and stuff that's in the slash boot directory. Then we have slash Etsy, or we might call it etc, etc. Often we call it Etsy. And you have a number of system configuration files. Not all of them, but a lot of them there. Slash home is where you put the home directories. Generally one for each user. Slash root. The root user has his own separate directory, separate from home. Now why would we want to do that? Maybe the users might fill up the partition that has the home directories. Well, you want the root user to still be able to do their thing. So they're going to be in a different space. They can be in a different space in the file system. So we see a number of the different ones that we have. We have usr, we call it user, user bin. But we see that user, some people say, well that's where you put user files. No, that's not exactly what it means. It comes from a specific term from the Unix system. But in any event, that is where you have the non-changeable files. Your programs and things like that will sit someplace. User bin, bin for binary. User sbin for super user binary. You know, programs that perhaps only the root user might use will be sitting there. You have user lib for your programs and things like that. And you can have links to these. For example, bin is actually a symbolic link pointing to user bin. So that kind of helps to make the system more flexible. So we have var, which is like variable length files and things. Your logs and things might go into var. That forward slash proc is a very interesting directory because it's not actually a file system on disk. It is something that's simulated. And what it is, is it takes memory parameters and it puts it like it's a disk file so you can read them and write them. But those are lots of parameters dealing with the memory and the processes that are running on the computer. The last one we list here is the sys one. And that has parameters generally that you can read and set. And you would change the operation of the kernel. You can update the parameters of the machine while it's still running. Here we look at moving around the file system. And these are just commands to know pwd, print working directory, still like on Microsoft. They can work a little bit different. You can list files, ls stands for list, cd for change directory. If it's a hidden file, we're going to have a dot in front of it. So a dot in front of a file name means that it's hidden. How do we see that? Use the list command ls minus a, you will see those files as well. I mentioned the dot and the dot dot. Now Microsoft does this as well. And the dot is helpful for when you're moving around. That just means the directory where I am. Dot dot is the parent directory. Say for example, you're someplace, you're in home, you know, my directory. And you want to move up to the home. You just say change directory cd dot dot and it moves up. And that is the same as for Microsoft in a lot of cases. So there are some other things that we use. And you will see a little bit about this in a little while. For example, changing the permissions of the file. They call it change mode in Linux. Well, you know, that's an interesting one. Change owner, you can change who owns the file. The stat command is nice because it gives you a lot of attributes on the file. You know, the dates, the date when it was created, the date that it was updated, and lots of those. And other things about, you know, the file pointers and things. Okay, let's talk a moment about the file permissions. This is not necessarily difficult. And I believe that it can be easier than it is for Windows. So we see a directory. And in this case, we have some notable people. There are some very good inventors who have given us a lot of good stuff. But we see the RW, and that's for read, write. The third position, we call it execute. And that repeats. Read, write, execute. Read, write, execute. Why do we have that three times? The middle of the slide kind of tells us that it's going to be for that user who owns that file. The group that the file belongs to is always going to belong to a group. Even if it's the name of the owner, it's going to have a group. And other. Other is everybody else in the world who's using the system. So you can have privileges for that or not. Below that, I give you a little matrix of how that works out. We come up with a number. So if it is a read, we have number four. If it is a write, number two. And if it's execute, it's one. So if they have read, write, execute, it's going to be four plus two plus one. Now you can change the permissions of the file by using three numbers. And that will represent all of those. Whether it'll be anywhere from a zero to a seven for the user. A zero to seven for the group. And a zero to seven for the owner. You can change all of that. There are other ways that you can do it as well. And I didn't list those. It's like you can change a U, a plus this, a plus G, a minus that. I think it's a lot easier just knowing the numbers and doing that. So this is something that you'll play with. Get on there and look at the files and things. And if you haven't done it, I think you'll find it's not that difficult to do. Now, so what are the effects of this? On this slide, we tell you what is affected for changing in a file if you change the read. And that's pretty obvious, I think. If they have that permission, that person can read the file. They don't have it, they can't read the file. And the same thing for write. And that execute means if it is a program or a script, whether or not they can run it. If it's not a script or program, forget about the execute. So directories have these permissions too. And they have slightly similar nuanced meanings for directory. But we list this here as well. You know, whether you can read a file that's in the directory. Write is whether you can write to it or delete the file. Because in any event, you're writing to something in order to delete. And execute means, can I even get in there? So by changing these, you can set up a lot of who can get in and see what and do what and what have you. Now that root user, super user, can get to all sorts of stuff. So we talked about that proc directory. Proc is interesting, proc is fun. First thing about proc, and I did not list here, but for every process that's running, it's going to have a PID, a process ID, a number. And there is going to be a number there for that process. If you were to go into that directory of that number, you can see lots of parameters about that process. Now there are some other things, a lot of things as we list here, that are simply files that you can list in. And see some things that are going on. So what are some of these things? I'll list a few of them. Now my favorite one is the second one, CPU info. And that is where you can get detailed information on all of the CPUs. You can see the strings of the CPU that tells all of their options. Typically everything is now 64-bit, but it wasn't. There are some flags in there that will indicate that it's 64-bit, about the type of co-processes and things that it has. Another thing that is interesting about the CPU info, when you take a look at it, it's going to be kind of odd. You're going to see multiple CPUs, because every computer nowadays has multiple CPUs. You're going to see the frequency of the CPU, how fast that thing is running. Let's say you have eight CPUs. Here is what you're not going to see. You're not going to see all of them listing the same exact frequency. The frequencies of the microprocessors vary a bit. And they're going to have different numbers. But in a way, you'll see all of this on CPU info. When you run commands and things that show you what the CPU is doing, it's pulling it from this file that's in this directory. The same thing for the other ones. Meminfo. All of that gets written to that file as if it is a file on the operating system. But it's not. It's a pretty instantaneous spot where you can read and write and whatnot and get all the different versions. One thing that we're going to say about Linux, and we'll say it a couple of times, is that on a Linux system, everything is a file. But we'll get to that a little bit more in a moment. OK. So command line editing. Here's the stuff that you'll be using. You're probably used to a lot of this. Ctrl-C to end a program. You can up arrow, down arrow, go back into previous commands. You know, I forget if Microsoft does this. Ctrl-S and Ctrl-Q. Let's say you have a listing that's scrolling. You know, Ctrl-Q, Ctrl-S. You know, make it stop, go, stop, go. We used to do that on terminals, you know, way back in the day. Ctrl-D is interesting because if you're typing input into a program, say you're building a file from the command line. I want to put, you know, maybe three or four lines in this. How do you tell it that you're done with the input? Ctrl-D. Ctrl-Z will suspend the file, a file, a program that's running. And you can go back and resume the program. You can take programs and you can put it in the foreground, the foreground, and the background. Something that I list in here that's a little interesting, just to know, in working on Linux, we're used to Ctrl-C, Ctrl-V, you know, copy, paste. When you're in the CLI, a lot of times you have to do Shift-Ctrl-C, Shift-Ctrl-V. That's just a little something you get used to. OK. So, we mentioned the three files that are associated with every running process. The standard in, standard out, standard error. And we see that there are 0, 1, and 2, the file numbers. They're always going to be that. So, the input by default is going to be, from the keyboard, the output by default, the user screen, standard error by default, the user screen. Remember we said in Linux, everything is considered to be a file. Now, that standard input and output can be redirected to other places. You can send standard output to a file. In other words, you get the output just right at the disk somewhere. Or you can send it into another program. You can pipe it into another program. And that becomes its standard in to another program. OK. So, everything is a file in Linux. So, what about Windows? Windows does not treat this the same. Windows tends to have APIs, application programming interfaces. And I mentioned PowerShell applets. When you use PowerShell, and PowerShell is good to use because, you know, in addition to Windows, I mean, Linux will be working with Windows. You will see that, as I joke, there are billions of them. But that is, you know, just a fundamentally different way of doing things between the two operating systems. So, I mentioned that, well, I listed here that many operations and things can be done by open reading and closing a file. And I was mentioning the PROC FILE SYSTEM is a good example for doing all of that. A little bit more on using the terminal because we talked about redirecting stuff. You know, you see that greater than redirecting, you know, output. You know, you can say, okay, send it into my output into a file. You know, I'm listing a directory. Send it to a file. You know, I want to keep that output. You will see the double arrow. And the difference between that is the single arrow will write the file. If something is there, it will overlay it, erase it, and, you know, start writing anew. The double arrow, it will append to the file. That's the only difference between the two. The less than sign is you can redirect the input. So, on this slide, we list a few examples of that. So , we see we have the PIPE command. And we have the ampersand, which is used to put something in the background. And this is where it's good to look at these examples right here. Because the first one, we see that we run a listing. And we redirect that to a file. In terms of redirecting the input, the sort is a very good command. Because by default, the sort command will look to the standard input for something. Typically, we're not going to be typing in that. You know, we can. But typically, we're not. It's going to be a file. So, we redirect the input to a file. And we can redirect the output. Because if we don't, sort is just going to list it on the screen. But, you know, that's a very good example of doing that. I apologize for the next one where the find is an uppercase. That uppercase F is not going to work. That's what happens when you use PowerPoint. It wants to change each one of those. But we give an example of the two-in-one operator. The thing about the two-in-one is that I mentioned standard out, which is file handle one. And standard error, which is file handle two. And those are two different things. And even if they're both going to the screen, they can be separate things. Or a program might, by default, send those someplace else. But even if it does, we can combine those into one listing. A lot of times we don't want to. But if we need to, we can do that. So we see a few examples of using that pipe command. And we use pipe on Windows as well. But, you know, you can take output and redirect it to another program and do things. What we're doing in the two examples here is counting something. When we say who, it's going to give you a list of the people who are logged into the system. In this case, we want to know how many. So we pipe that into WC, which is word count. And we say minus L. Give us the lines, not the characters, you know, not all of that. Because word count will give you different numbers. So minus L will give you just the lines. The same thing if I want to know how many files are on a disk. Oh, I'm not on a disk. In a directory, we will list it. Use the minus L so we get one thing for each file. And send that to word count. We'll get the number of files. So , there are lots of things that we will use that for. Now that ampersand, and this is a good example of it, putting something in background. I like to use gedit, the graphical editor on Linux. Now if I'm on a command line, and if I say, you know, gedit, hello, whatever the file is. And just do that. The problem is, it's going to hang the command line until that command finishes. And so, if I remember, I will have the ampersand. And so it's going to star gedit and run that in the background. And so I get the prompt back in the command. That's just a little example of something that you might want to run in the background and not tie up the screen. Many other times you will be using that. So, what can be a command on Linux? Lots of things. A program can be compiled. It can be an interpreter, say Python, or many other things. You can even run JavaScript. So things can be a script. And they can all look the same and run just like it's, you know, command. So the command can be a file that is on the disk. It can also be built into the shell. We call the shell the command line interpreter. So it can be built in there. And we give you an indication of looking at, say, man built-ins. And you will see the commands that are built into the shell. For example, if you type ls for list cd, those are not programs sitting on a disk. They are built into the shell. But they all run as commands. So the commands are generally available system-wide. And they can be in any directory, okay? Now, you can restrict some of them. For example, the privileged commands, you know, some people might not be able to run those. And one of several ways they can be restricted from everybody running them, okay? If you try to do something on a Linux system and the command is not there, if you're on the internet, oftentimes it'll tell you, well, this is in such and such a package. You know, install this package and you'll get the command. So that's pretty helpful. And if you are the root user, running as a root and you put in something, command that's not there, say tcpdump or something, and it'll say that it's here, do you want me to install it? And you'll say yes or no. So Linux and available memory. Linux attempts to use all of the memory that's on the system. It tends to make, you know, very good use of it. Slowly over time, it will allocate memory to buffers and to cache. Now, the buffers are part of the virtual memory system. If you start paging, you will use some of the buffers, you know, to move program segments and things. The cache is simply an area where files and things, you know, you've run files, and it will keep the contents of them in memory. If you run that file again, then it doesn't have to read the disk. It'll just read it from the blocks that are in memory. So what Linux does over time is it slowly takes the spare memory and starts allocating it to the cache and to the buffers. Now, this is still available memory. If you load a big program and you need it, it's going to deallocate that in a flash from wherever it put it, and it's available to your program. So it's not memory that is wasted or unavailable. It's instantly available. The adage in Linux, you know, we should use all of the memory is a good thing. This is just a little example of the cache and the buffers over time. You know, you'll see that they grow. Now, why am I mentioning this? Now, it might not matter as much today, and it still might matter in some cases. Depending upon the way a Linux program looks at the free memory, you know, what functions are used to read it, it might say that it's low on memory because it's not telling you about the memory that's in the cache and that's in the buffers. And what would happen a lot of times is that, you know, you would have, you know, servers and things running. And you see the, well, the memory usage is going up, up, up, past 85% all the way up to 99%. And what happens at that point? You know, people start screaming and running and all that type of thing. And you look at the machine and it's like, no, the machine is not running out of memory. It's just, you know, it's just allocated this memory. And so when you say how much memory we have free, it's not telling you all of that. Now, the commands have changed where you can look at that and see that. In fact, you've been able to look at that and see that for a while. But the way that you can go in, you know, with the program to look at that, you know, there is a more modern way of doing it. And it's not a problem. But if a program uses the older way, then yeah, that can happen. And on the GitHub, there is a PDF that we have out there that talks about that. The programming that looks at that. But , you know, so when you see the memory going high, it's not necessarily a bad thing. OK, so compatibility of the different files and things. So when we have the USB drives and you use one by default, and what I list here is something, sometimes this catches me. And so it's like, you know, I want to back up something. And I'm moving it there. And as soon as it hits four gig, it stops. Well, that's because it's formatted as FAT32 and a file size is maximum four gigabytes. Now, you can have lots of space on there, but you just stop there. And so it's a fairly easy fix for that. And that is to reformat that drive. You could do it on Windows. Format it as EXFAT. And that's, you know, one of Microsoft's, you know, things, you know, Linux will read it usually. And if Linux doesn't read it, you can, you know, install the packages so you can read it. But what that does is to, you know, allow you, you know, allow you to use, you know, the very large USBs, you know, to store things on it. Also, on this slide, you know, we talk about the file systems of the different systems, the file types of the different systems. So, in Windows, you know, we see we have FAT32, NTFS, and EXFAT. When we go to Mac and Linux, they cannot read NTFS. So, they can read, you know, the FAT, the EXFAT. So, this slide gets back to some of the other things that we're seeing earlier and that Linux is a modular system. And we talk about some of the things that are modular in the Linux system. So, all of these things can be changed out and, you know, set up differently. You can do that. Usually, you're not going to do that on your own distribution, but you might. You can roll your own distribution and you will decide, you know, which kernel version, which type of bootloader that you use. There are several of those. The package manager, we talked about that, you know, whether it's going to be Red Hat, whether it's going to be Debian, but you can, you know, select all of these things. So, Linux and viruses, you know, people say that Linux is more secure. It might be, and I think that's kind of a debatable type thing on it. But one thing that I do tell people is that a non-privileged user in Linux typically will not be able to write to as many system areas, as many programs and things. Unless an organization restricts their Windows computer, people can oftentimes, you know, overlay stuff and whatnot. And, you know, that's how malware can get attached to the system. But if it cannot write to, you know, a lot of the directories and things, you know, that kind of cuts down on a lot of that. We mentioned su and sudo because when you install Linux, you do not necessarily have a root password that you put in there. Windows... Linux knows the root password, but it does not tell you that by default. You can get at it, but you're the first user who installed it and you have rights to run that su and sudo. Su stands for switch user. And sudo means switch user, do something. And you can set up files and things. And we list all of that here. sudoers that has, you know, the people who can run various, you know, privileged commands on the machine. I list a very fun and favorite command here, dd. It's questionable what dd actually stands for. I think some places like Wikipedia might say disk duplicator. That's not exactly sure where that comes from. But dd is very handy because you can copy anything with it. Everything is treated as a file. You can copy entire disk with it. You can backup disk with it. In the syntax that we have here, we see that we have a disk and we can back it up and we can compress it as we back it up. Compressing takes a bit longer, but, you know, you can take the contents of, you know, I have a computer here, I believe it's 256 gig SSD. And, you know, when I run dd on it and back it up and compress it, I think it's about 15% of the size. So it's a pretty handy command for doing that. Of course, this works on Windows partitions. You can backup something, load it, back it up, that type of thing. Okay, we're getting to the final stretch. So I list some things that are awkward in Linux, you know, awkward or buggy. One thing that I will highlight Fedora because you may get caught trying to upgrade and you want to make sure it doesn't get too far behind before you start upgrading. We just, you know, highlight that. So in summary, we've listed, you know, how Linux got its start and it came from Linux. And, you know, you see some of the differences and things between Linux and the Windows systems. Okay, are there any questions? Okay, so here is where you can find the slides and other information on GitHub for installing Linux, backing it up, and doing things so you can roll your own installations of that. And this information is available right now. So otherwise, I appreciate your time. Thanks.