Day 3 0f 30 Learning AWS: Linux Commands

1. Understand What Linux and the Terminal Are
Linux is the operating system used in most AWS servers (like EC2).
The terminal is where you type commands to talk to your system (like a control center).
2. Access a Linux System
You need a place to try commands:
Use your local Linux machine
If you're on Windows, use Windows Subsystem for Linux (WSL)
Or a cloud EC2 instance on AWS (if already set up)
Or online Linux terminals
What is Linux Commands?
Linux commands is a text instruction you type to a computer to make it do something like open file or folder, copy a file or install software.
You type all these commands in a program called Terminal.
Why Use Linux Commands?
Gives you more control over your system.
You can do tasks faster and automate them.
Used a lot in servers like Cloud, AWS and in Programming.
Learn and Practice Basic Commands
Command | What it Does |
pwd | Print working directory shows current location or path |
ls | Lists files and folders in the current directory |
cd foldername | Moves you into a folder |
cd .. | Moves you one folder back |
mkdir foldername | Makes a new folder |
rmdir foldername | Deletes an empty folder |
rm filename | Deletes a file |
rm -r foldername | Deletes a folder and its contents |
touch filename | Creates a new empty file |
cp file1 file2 | Copies a file |
mv file1 newname | Renames or moves a file |
clear | Clears the terminal screen |
echo "Hello" | Prints text to the screen |
cat filename | Shows what's inside a file |
nano filename | Opens file in a simple text editor |
sudo | Runs a command as admin used often in AWS |
apt update | Updates the package list Ubuntu |
apt install packagename | Installs software Ubuntu |
Try this in your terminal:
This:
Creates a folder
Goes inside it
Creates and edits a file
Conclusion
Linux commands are the basic building blocks to interact with a Linux system using the terminal.
Create, view, move, and delete files and folders
Install and manage software
Navigate the system
Control your server in a powerful way
Using Linux commands gives you more control, helps you work faster, and is essential when working with cloud platforms like AWS especially when managing EC2 Linux servers.
Whether you're a developer, cloud learner, or system admin, learning Linux commands is a must-have skill in tech.
Subscribe to my newsletter
Read articles from Prajakta Vadje directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
