 So the idea this morning is to introduce you to the what I call either the Linux or the Unix command line So running things on in the terminal on the command line And the idea is that you understand this command By the end of today anyone know what this command is Okay, so we'll see that this is a command that produces this output So we'll have a look and see Some of these things and what what all this Random set of characters is actually doing this morning. We'll just do very basics How to move or about the operating system in the afternoon if you still Have the energy will do some other things. Maybe a little bit more interesting Often I would give an explanation of the history of Unix of Linux their relationship And talk about why one would use the command line and Linux in general But today will not we want to go straight into it I'll give you some pointers where you can find out about that and read it about yourself So there are plenty of seats spread about Yeah, a couple in the middle I will show you how you can see what I'm doing on the screen on your screen in a moment So it's a little bit easier to see especially from the back So I will not give an introduction of what is Linux? What's the history? Why use it? Why not use Windows? That's not what I'm going to talk about today We're going to go direct into using some commands and then may be discussed some of those issues as they come up as always Some of the things that I'll present are on the website So if you go to the website, which is ICT dot S I T T U A C T H slash Moodle follow the links to the workshops and You will find links to some other resources This Linux reference card is a PDF of the page you have in front of you. Okay These documents are also on your desktop. I think I've put them there if you Have logged in I should say again the username and password to these machines is what? Student and student. Okay, very secure if you log in on your desktop, you'll see a Folder called ITS 3 3 2 that was the name of the lab and You'll see local copies of some of these documents there So you don't even have to go to the website But the Linux reference card is just this one page sheet which will look through over time There's a few slides on why use Linux, which I usually present to the lab But will not present today and a couple of other slides which we may select a few pages from just for display And a couple of websites which we'll use in the afternoon as more detailed examples. So no way to find these let's open a terminal Because the terminal is the application that gives us The interface for issuing commands to our computer and The computer sending back some output and it's displayed on the terminal. So we have a terminal application and Let me close this How do you find it? You cannot see on my computer. Can anyone not open a terminal? I think in your desktop. There's a black icon You can open multiple open at least two and Just close this one Resize it to fit how you prefer it. Okay, you can zoom in if you go to the menu and view zoom You can zoom in if you want to make it a little bit bigger for you. So just get your desktop Ready Open two terminals. You will need at least two One will follow what I type and the other is where you will type Just before we get started on your desktop You can switch workspaces Let's see if you press control alt and Left right up down arrows. So control I'll just type don't type this alt and Say up At the same time it will move up a workspace left right and down You can switch workspaces. See if you can do that It's hard for me to show the exact command control alt and Your arrows move around in that way you can open a browser or a PDF in one workspace and your terminal in another workspace and Conveniently switch between them quite quickly Just so you can follow along a little bit easier If you want if this color scheme of this sort of white text on dark background is not so good with your terminal if you go to the menu and edit profile preferences So open your terminal and go to the menu edit profile preferences You can change the color scheme okay, and You can use the colors from the system theme or you can select a different color scheme whichever is your preference okay All right, so what we're going to do today is just some basic things that you can interact with your computer via the command line and I'll do some things on the screen and you can do them on your own computer You can do them the same or differently and just explore some commands But what's convenient is if you don't have to look at the the projector But you can look at your own monitor and see what I'm typing So first we want to set that up Here's my terminal that I'm going to use We'll explain the prompt as we go, but If you've got one of your terminals open, this is a special step at the start up I want you to log into my computer and my computer is which computer in this room on the screen Which computer am I using? Anyone want to guess? It's not this one Computer number 24, which is one of them at the back. Okay, don't use 24. I'm using it I've logged into it remotely. I want you to log into it remotely so type this on one of your terminals SSH is the program to log in remotely log into another computer and the IP address of that other computer Is this 10 10 6 2 2 4 press enter it will prompt for a username and password Same username and password. I think it prompts immediately for a password. It's student and log in everyone's logged in Now it may prompt you. Are you sure you want to continue? Yes, you trust us So in one of your terminals do this and you'll see why in a moment and then Type the command. Let's see if it works Tmux attach session Minus r minus t demo one Once you've logged into that computer 24 type this command tmux tmux space attach dash session Space minus r minus t and then demo one and press enter We're just setting up so that you can see what I type T much tmux attach dash session Minus r minus t demo one. Okay. Good. It'll make sense once Okay, good. Let's get everyone at the same point 24 you're on 22 exit Exit ex it All right now log in secure shell to 24 10 10 6 2 2 4 Tmux attach attach is spelled wrong. Okay, we'll get everyone at the same spot and then we'll start Tmux attach session We're going to use this so you can see what I type You'll see one window what I type and in the other terminal window you'll type your own things. That's all Yes Okay Almost 10 10 6 2 2 4 good. Yep Okay No sometimes you Install tmux Right, so you need land on here to connect use this one Use this one You if you use this one you'll be out most of the commands So what I suggest is use this one to see what I'm doing and you can still run the commands on this one Okay, so then you can view both All right. I think everyone's there let's see what What that did with tmux is this program that allows us to share a terminal You watch your terminal Is it changing? So you're going to see what I type that's all Okay, and then you don't have to Look at the screen you can listen and look at your monitor Okay, so now everyone's set up what we'll do is you watch in one window in the other window you can type and follow along so Let's get started