Ubuntu and WSL environments
Ubuntu provides Linux tools, package management, users and a filesystem. WSL runs Linux distributions on supported Windows installations; WSL 2 uses a real Linux kernel in a managed virtual machine. The terminal window does not by itself identify which environment is active: a Windows terminal can contain PowerShell or Ubuntu. Start by checking the prompt and reading /etc/os-release inside Linux. Windows installation commands belong in an administrator PowerShell session. Existing Ubuntu users do not need WSL, and macOS users need an Ubuntu VM or another explicitly chosen Linux environment for these Linux-specific exercises.
Windows PowerShell: wsl --install -d Ubuntu. After any requested restart, open Ubuntu and run cat /etc/os-release.
Identifying the operating environment first prevents executing Linux instructions in PowerShell and makes later troubleshooting evidence reproducible across different machines.
Assuming every terminal is Bash leads to confusing errors; identify the shell and operating environment before copying installation or administration commands.