← Learning Hub
Beginner

Linux and the Terminal

Linux is a free operating system, like Windows or macOS. It runs most of the world's web servers, the cloud (AWS, Google Cloud), Android phones and supercomputers. If you build websites or APIs, your code will almost certainly run on Linux.

Most servers on the internet run Linux, and on a server you work through a terminal, not a mouse. Learning a handful of commands lets you manage files, read logs, install software and deploy apps - skills every back-end, cloud and DevOps job expects.

On servers there's no mouse or desktop - you control everything by typing commands in a terminal (also called the shell or command line). The most common shell is bash.

How to get a Linux terminal

  • Windows: install WSL - open PowerShell as administrator and run wsl --install, then restart. You get Ubuntu inside Windows.
  • macOS: open the Terminal app. macOS isn't Linux, but almost all these commands work the same.
  • Cloud: a small Linux server (an AWS EC2 or Lightsail instance) - see the AWS course.
  • Distributions: Ubuntu (most popular, best for beginners), Debian, Fedora, Amazon Linux, Rocky Linux

Your first commands

Example
$ echo "$USER"
asha
$ pwd
/home/asha
$ echo "Hello from Linux"
Hello from Linux
$ date +%Y
2026

$ is the prompt - don't type it. Lines without $ are what the computer prints back. In these lessons the user is called asha; on your computer you'll see your own name.

Getting help

  • man ls - the manual for a command (press q to quit)
  • ls --help - a shorter summary
  • Tab completes file and command names; the up arrow brings back earlier commands; Ctrl+C stops a running command
Key points
  • Linux runs most servers and the cloud.
  • The terminal (bash) is how you control servers.
  • Use man and --help to learn commands.

📝 Test yourself

1. Why learn Linux as a web developer?
2. How can Windows users get a Linux terminal easily?
3. Fill in the command that shows the folder you're in: