Day 3 0f 30 Learning AWS: Linux Commands

Prajakta VadjePrajakta Vadje
3 min read

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

CommandWhat it Does
pwdPrint working directory shows current location or path
lsLists files and folders in the current directory
cd foldernameMoves you into a folder
cd ..Moves you one folder back
mkdir foldernameMakes a new folder
rmdir foldernameDeletes an empty folder
rm filenameDeletes a file
rm -r foldernameDeletes a folder and its contents
touch filenameCreates a new empty file
cp file1 file2Copies a file
mv file1 newnameRenames or moves a file
clearClears the terminal screen
echo "Hello"Prints text to the screen
cat filenameShows what's inside a file
nano filenameOpens file in a simple text editor
sudoRuns a command as admin used often in AWS
apt updateUpdates the package list Ubuntu
apt install packagenameInstalls 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.

2
Subscribe to my newsletter

Read articles from Prajakta Vadje directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Prajakta Vadje
Prajakta Vadje