Linux is the kernel, the part of an operating system that manages resources and lets programs communicate with hardware. A Linux distribution adds system tools and software; Ubuntu and Debian are examples. These lessons use an interactive Bash shell and common Linux commands. Details can differ between distributions.
Choose an environment you can afford to practice in:
- Linux desktop: open the Terminal application from the applications menu. A separate user account or virtual machine can provide additional separation from important work.
- Windows: Windows Subsystem for Linux (WSL) runs a Linux environment alongside Windows. If it is not installed, follow Microsoft’s WSL installation guide; installation can require administrator permission and a restart. Open the installed distribution from the Start menu. A Windows PowerShell prompt by itself is not the Bash environment used here.
- macOS or another system: use a Linux virtual machine or an appropriate hosted Linux environment. macOS has Unix-like tools, but it is not Linux and command options can differ. A hosted environment may expire or restrict commands; avoid sensitive files there.
WSL can access Windows files as well as its Linux files. For these lessons, keep the practice directory in the Linux home directory; isolation is a habit, not a security boundary. Do not run unknown commands with elevated privileges or copy commands that you cannot explain. Installing or changing an environment affects your machine, so use its official instructions and your organization’s policies.
Open the terminal for your chosen Linux environment. If its shell is not Bash, enter bash to start Bash for these examples. Closing the terminal ends the session; it does not necessarily delete files created during it.