1. What will we learn?
We will learn what Linux is and cover the most important terminal commands you need to navigate, manage files, and control processes on a server.
2. Why do we need this?
Almost all internet servers, cloud infrastructure (like AWS), and containers (like Docker) run on Linux. Because servers usually don't have a mouse or graphical interface (GUI), you must know how to talk to them using text commands via a terminal.
3. What is it?
Linux is an open-source operating system, just like Windows or macOS, but it is highly optimized for servers. The Terminal is a text-based interface where you type commands to tell Linux what to do.
4. Simple analogy
Imagine a GUI (like Windows) as driving an automatic car with a steering wheel and pedals. Using the Linux Terminal is like opening the hood and directly adjusting the engine with tools. It's harder to learn, but gives you absolute control.
5. How it works
When you open a terminal, you are placed in a directory (folder). You type a command, press Enter, and a program called a "shell" (like Bash) executes it and prints the output.
6. Step-by-step practical example
Here are the essential commands you will use every day:
Where am I?
*Output:* /home/ubuntu (Prints Working Directory)
What is inside this folder?
*(Lists files and directories)*
Change directory (Go to another folder)
Create a new folder and an empty file
Read a file's content
Search for a word inside files
Permissions (chmod)
Servers are secure. Sometimes you need to make a script executable:
Superuser DO (sudo)
If you are denied permission to do something, you ask the "admin":
Connecting to another server safely (SSH)
7. What just happened?
You used standard text commands to navigate a computer's file system, create files, search logs, and elevate your permissions. This is exactly what you will do when you deploy applications to AWS later!
8. Common beginner mistakes
- Forgetting
sudo: If you get a "Permission denied" error, you likely need to putsudoin front of your command. - Deleting the wrong thing:
rm -rf /folderdeletes a folder forever. There is no recycling bin in the terminal!
9. Interview questions
Q: What does the grep command do?
A: It searches for specific text patterns within a file or output.
Q: What is the difference between cp and mv?
A: cp copies a file to a new location, while mv moves it (or renames it).
10. What we learned
We learned that the terminal is our primary tool for interacting with servers. We covered basic navigation (cd, pwd, ls), file manipulation (mkdir, touch), and security (sudo, chmod, ssh).
11. What's next?
Now that we know how to use the terminal, we need to learn how developers store and track their code. In Article 3 — Git & GitHub, we will explore version control!
