Join Scott Simpson for an in-depth discussion in this video What you should know, part of Learning Linux Command Line.
- [Instructor] In this course, I expect that you're familiar with the basics of using a computer. I know that sounds, well, basic, but if you have an understanding of macOS or Windows, you'll be able to make connections between working at the command line and using the programs you're familiar with. Getting set up with an environment where you have the Linux command line window to use can take a little bit of work. So I've created videos in the next chapter that cover how to get there through a number of different routes. All of the videos in the chapter on setting up your environment are optional. None of them count towards course completion, so you can just watch the ones that are relevant to you and skip the rest.
In the course, I'm going to be using a virtual machine running Ubuntu Desktop, and if you're able to do that, that's what I recommend. But you can also set up to follow along with me in Windows, on a Mac, on a Linux workstation, or using a Linux machine running in the cloud. The exercise files for this course are hosted on GitHub, so you can grab a copy of them when you have your environment set up. Here's what that process looks like. You can open up a terminal window and type in git clone git://github.com/scottsimpson/commandlinebasics.
Normally, it's not a great idea to type in whatever someone on the Internet tells you to if you don't know what it's going to do. But, you trust me, right? This command uses the git software, which is used for keeping track of changes in software source code. To download the bundle of exercise files for this course and put them into a folder called command line basics on your computer. Within the bundle of files, are a few text files and some directories. You can also visit the github site in your browser and download a zip of the files that way as well.
Throughout the course, I'll have the files in my documents folder. Once you clone or unzip the files, you can move them there or wherever you like using your system's file browser.
- Recognize what the characters “-h” represent in the statement “df –h/home/alice/Documents”.
- Explain how to recall a previous command in Bash.
- Identify what the command “ls -l” will show.
- Recall what is needed to use the find command to look for files by name, size, and so on.
- List the two modes file permissions can be set to.
- Recall why many command line tools are intended to be used in pipes with other commands.
- Explain what the command “grep -E "" report.txt” will show.
- Identify what the “>” symbol is often used for.