Setup & Environment
Before you can practise Linux commands, you need a Linux environment. This chapter covers all the common approaches — from local virtual machines to browser-based cloud terminals.
What You Will Learn
By the end of this chapter you will be able to:
- Install and configure Ubuntu Linux on VirtualBox
- Set up WSL2 (Windows Subsystem for Linux) on Windows 10/11
- Configure your macOS terminal for Linux-compatible workflows
- Use cloud shell environments (no local install required)
- Log in for the first time and understand the shell prompt
Choose Your Setup Method
| Method | OS | Install Effort | Cost | Best For |
|---|---|---|---|---|
| VirtualBox + Ubuntu | Any | Medium | Free | Full Linux desktop experience |
| WSL2 | Windows 10/11 | Low | Free | Windows users, VS Code integration |
| macOS Terminal | macOS | Low | Free | Mac users, similar Unix base |
| AWS CloudShell | Any (browser) | None | Free | Quick practice, no setup |
| Google Cloud Shell | Any (browser) | None | Free (5 GB persistent) | Persistent learning environment |
Topics in This Chapter
| # | Topic | Description |
|---|---|---|
| 1 | Ubuntu on VirtualBox | Install a full Ubuntu VM |
| 2 | WSL2 on Windows | Linux inside Windows |
| 3 | macOS Terminal Setup | Configure Mac for Linux workflows |
| 4 | Cloud Shell (AWS & GCP) | Linux in your browser |
| 5 | First Login and Prompt | Understanding the shell prompt |
| 6 | Practice Exercises | Hands-on tasks |
Quick Start (If You’re Impatient)
If you just want to start immediately without installing anything:
- Go to https://shell.cloud.google.com
- Sign in with a Google account
- You get a full Linux terminal in 30 seconds — free, 5 GB persistent storage
Or on AWS:
- Go to https://console.aws.amazon.com/cloudshell/
- Sign in with an AWS account (free tier is sufficient)
- Linux terminal available immediately
Next → Ubuntu on VirtualBox