The 50 Most Popular Linux & Terminal Commands – Full Course for Beginners
What You Will Learn
- Learn the basics of Linux commands and how to navigate the terminal
- Understand the concept of absolute and relative paths in Linux
- Familiarize yourself with essential commands such as
cd,ls,mkdir, andtouch
Key Concepts
The Linux terminal is a powerful tool that allows users to interact with their operating system using commands. The cd command is used to change directories, while ls is used to list the contents of a folder. Absolute paths start with a forward slash and are used to reference a specific location on the machine, whereas relative paths are used to navigate relative to the current location. The mkdir command is used to create new directories, and touch is used to create new files.
Code Examples
whoami
This command prints the username of the currently logged-in user.
man ls
This command displays the manual page for the ls command, which is used to list directory contents.
mkdir greenhouse
This command creates a new directory called “greenhouse” in the current location.
touch squash
This command creates a new empty file called “squash” in the current location.
Lesson Summary
In this lesson, we covered the basics of Linux commands and navigation. We started by discussing the importance of learning Linux commands and how they can be used to perform various tasks. We then dove into the basics of navigation, including how to use the cd command to change directories and how to use absolute and relative paths. We also covered essential commands such as ls, mkdir, and touch, which are used to list directory contents, create new directories, and create new files, respectively. Additionally, we discussed the concept of manual pages and how to use the man command to access them. By the end of this lesson, you should have a solid understanding of how to navigate the Linux terminal and use basic commands to perform tasks.
Practice Exercise
Create a new directory called “myproject” in your home directory, and then create a new file called “README.txt” inside of it. Use the cd command to navigate to the “myproject” directory and the touch command to create the new file.
What Is Next
In the next lesson, we will build on the basics learned in this lesson and explore more advanced Linux commands, including how to copy, move, and delete files and directories. We will also discuss how to use permissions to control access to files and directories.