Setup & Environment

1 minute read

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:

  1. Go to https://shell.cloud.google.com
  2. Sign in with a Google account
  3. You get a full Linux terminal in 30 seconds — free, 5 GB persistent storage

Or on AWS:

  1. Go to https://console.aws.amazon.com/cloudshell/
  2. Sign in with an AWS account (free tier is sufficient)
  3. Linux terminal available immediately

Next → Ubuntu on VirtualBox

Updated: