teluzia.Cloud Engineer · Day 1
CHAPTER 01 · LINUX FUNDAMENTALS AND GIT

Ubuntu/WSL setup and filesystem

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

A shell is a program that accepts commands, while Ubuntu is the operating system environment in which those commands run. Windows users can use Ubuntu through Windows Subsystem for Linux; Linux users can use their existing Ubuntu terminal. Today you establish a clearly identified practice environment and learn where files belong. That distinction prevents later confusion about commands entered in PowerShell versus Bash. Your deliverable is a small directory inside your Linux home, a note identifying the distribution, and an explanation of the paths you inspected. Installation and command entry happen on your computer, outside this lesson page.

Think of it this way

A filesystem is a building: / is the entrance, directories are rooms, and an absolute path is a complete address.

TOPIC 01 / 03Step by step

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.

WORKED EXAMPLE
Windows PowerShell: wsl --install -d Ubuntu. After any requested restart, open Ubuntu and run cat /etc/os-release.
Why this matters

Identifying the operating environment first prevents executing Linux instructions in PowerShell and makes later troubleshooting evidence reproducible across different machines.

A common trap

Assuming every terminal is Bash leads to confusing errors; identify the shell and operating environment before copying installation or administration commands.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

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.

WORKED EXAMPLE
Windows PowerShell: wsl --install -d Ubuntu. After any requested restart, open Ubuntu and run cat /etc/os-release.

Why this matters

Identifying the operating environment first prevents executing Linux instructions in PowerShell and makes later troubleshooting evidence reproducible across different machines.

A common trap

Assuming every terminal is Bash leads to confusing errors; identify the shell and operating environment before copying installation or administration commands.

Root, home and mounted filesystems

Linux presents files beneath one directory tree rooted at /. Your personal home directory normally appears under /home and is represented by the shell variable HOME. The root directory is not the same thing as the root administrator account. Paths such as /etc contain system configuration, while /tmp holds temporary files and /var commonly holds changing service data. In WSL, Windows drives are normally available beneath /mnt, such as /mnt/c. Keep beginner Linux projects in the Linux home directory so permissions and tools behave consistently. Inspect system directories without editing them.

WORKED EXAMPLE
Run printf "%s\n" "$HOME" and ls /; compare /home with /mnt/c only if using WSL.

Why this matters

Knowing directory purpose keeps practice files separate from operating system configuration and helps you predict which paths require administrative privileges safely.

A common trap

Creating project files under /etc or treating / as your workspace risks permission errors and accidental changes to important system configuration files.

Absolute and relative paths

An absolute path starts with / and can be resolved regardless of your current directory. A relative path begins from the directory shown by pwd. The components . and .. refer to the current directory and its parent; ~ expands to your home directory in appropriate shell contexts. Names are case-sensitive on the Linux filesystem, so Notes and notes may refer to different directories. Quote paths containing spaces. A reliable command sequence states its starting directory, checks the resulting path, and avoids assuming that a previous terminal session left you in the correct location.

WORKED EXAMPLE
mkdir -p "$HOME/teluzia/day01"; cd "$HOME/teluzia/day01"; pwd

Why this matters

Explicit paths make labs reproducible and reduce the chance that a command writes or removes files in an unintended working directory location.

A common trap

Using an unquoted path with spaces passes multiple arguments; also avoid assuming that a relative path works from every terminal directory location.

KEEP THESE WITH YOU

Today’s takeaways

Identify your environment before entering commands.

Distinguish /, the root user and your home directory.

Quote paths and respect filename case.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed