 Okay, well, I've been doing YouTube videos for about three years now, and originally, the original videos I posted were just tutorials for a friend of mine, and the quality wasn't that great, although they do have probably the highest views of all my videos, and they were just basic shell commands for Linux or really any Unix system. So I thought I'd go back to the basics, so all this week, pretty much every day I'll put out a new video on some very basic shell stuff. I'll be working in Bash, which is a very common shell environment, but most of what I'm going to show you in these basics should work on any system or any shell, as long as you have the right tools involved, because some of them are built into Bash, and some of them are actual external programs, but very common. And so I just wanted to do some of these with a slightly better quality than the one I recorded on my EPC with the built-in microphone three years ago. So here we go, very basic things when you're programming is you want to be able to print things to the screen, and you want to be able to get user input, both very easy to do. Print something to the screen, we're going to use Echo, and then inside quotations we're going to write something like, Hello World, and we will hit Enter, and you can see it printed out, Hello World. Now to get a user input, you would use the read command. Now if we just type in the word read and hit Enter, this function here waits for some input, so you can type on the keyboard, and then when you hit Enter it continues. Now we need to tell, if we're getting a user input, if we're going to tell, we need to tell read where we want to store the user input, otherwise you can use read as kind of like a pause, press Enter to continue, you can say that, so we could do, and I should mention now, I'm going to be typing stuff up on here the screen, if you're writing a script which we'll get into later, you probably put them on different lines, but you can divide commands up with a semicolon like that. So I can say, Echo, Hello, Semicolon, Echo, World, and then when I hit Enter you see it ran the first command and then the second command by default, Echo puts a new line in the future tutorial, we'll look at how to remove that new line if we want it. So what I'm going to do is I'm going to say Echo, what is your name, inside quotations, and then I'm going to say Semicolon, and I'm going to say Read, which will wait for user input, and we need to tell it where we want to store it, so we're going to give it a variable, basically a variable can be within reason, whatever you want, try to avoid special characters and spaces, so just use regular words on your keyboard, I'll just call this one, Name, we'll hit Enter, it says what is your name, my name is Chris, I'll hit Enter, and now my name is stored as a variable, Name, and I can actually echo that out by saying Echo, dollar sign, Name, and you can see it says Chris there, so we can put all this together, I can say Echo, what is your name, Semicolon, I can read Name, and then I can say Echo, hello, dollar sign, Name, so now when I hit Enter it will say what is your name, I'll type in Chris, I will hit Enter and it says hello Chris, also I kind of started mentioning it earlier, once again you can use the read command without a variable, so you can say something like echo, oh okay, let me say one other thing here, you can use the up and down arrows in most shell environments to review your history, so if you type something and you want to use that again you don't have to type it all again, so I can hit up arrow to see my last command, so we got here our last command of Echo, what is your name, question mark, and then we're using the read command, we know it's a new command because we have our Semicolon here, we're setting what the user types to a variable called Name, then we're saying Echo, the word hello, and then we're saying this variable name and we know it's a variable because it has this dollar sign here, so it will print out hello and whatever name I put in, my name Chris, and then I'll say Semicolon here and I will say Echo, press enter to continue, Semicolon, and then read, so now it will echo after it says hello Chris, it'll say press enter to continue and it will sit there and wait for the person to hit enter to continue, so I'll hit enter, what is your name, Chris, hello Chris, press enter to continue, I'll hit enter again, and at that point it finishes the commands, but if you had a script you probably would have stuff after that, so things once again just to review, we learned about the echo command and the read command, and in reality the read command can do some echo stuff, so you wouldn't need the mess up for commands, but I normally do, so echo and in quotations, what you want to say, it will print out that out, read, and then the variable that you're creating, once again this can be within reason, whatever you'd like, just no spaces or special characters, just leave it to alpha numeric, and then we'll say echo, and we're saying hello, and then we're using the variable, once again we know it's a variable because we put the dollar sign at the beginning, and then we're going to say echo please press enter to continue, and then we're using the read command to wait for the enter key, and we divided up all these separate commands with a semicolon between each one, so we know each one's a new command, that's it for this first tutorial, very basic printing stuff out to the screen, getting user input, and then printing back out the input that they gave us, so it's pretty much where you start, at least I start with every programming language that I've ever worked with, printing stuff, getting input, saving it as a variable, printing it out, if you're very new at this, watch the video again, that's why these videos are great because you can watch them over and over again at your own speed, if you like this and you're looking for more advanced stuff, once again I've been doing tutorials for three years now, I have hundreds and hundreds and hundreds of videos, some really advanced stuff, my website is filmsbychris.com, that's Chris with a K, there should be a link in the description of this video, and as I said I'm doing pretty much all this week, I'm going to be doing basics of shell scripts or shell commands in the terminal, also I've been doing videos these last couple weeks on video editing from the command line, I still have a few more videos of that that I've already have done and I'm going to be doing, they just need to put them together and upload them, so that will continue next week, so if you're enjoying that don't worry that we'll be back next week, I just really wanted to come back to the basics for this week, so lots of videos this week, once again I'm going to try to do like maybe you want a day, so thanks for watching and have a great day!