These lessons provide an introduction to fundamental commands for using a command-line interface (CLI) in Linux. They are designed to quickly familiarize beginners with Linux, making it easier to use Linux on personal computers, cloud servers, or single-board computers like the Raspberry Pi. The instructional videos were recorded on Ubuntu LTS 2024.04, but the commands and concepts covered can be applied in a terminal to any popular Linux distribution, including Debian, Fedora, openSUSE, Arch Linux, etc.
Lesson 1: Navigating Directories
pwd
Print the current working directory. Open a terminal and type pwd to print the current working directory. Use it to know where you are in the file system.
Lesson 2: Listing Files
ls
List files and directories in the current directory.
Add -l for detailed info.
Lesson 3: Changing Directories
cd directory_name
Change the current directory to directory_name. Use cd .. to move up one directory.
Lesson 4: Creating Directories
mkdir directory_name
Create a new directory named directory_name.
Lesson 5: Removing Directories
rmdir directory_name
Remove an empty directory named directory_name.
Lesson 6: Creating Files
touch filename
Create an empty file named filename.
Lesson 7: Removing Files
rm filename
Remove a file named filename. Use with caution as this action is irreversible.