>_COMMAND LAB

LESSON 01 / 13

Bash fundamentals

Find your bearings.

Every command starts somewhere. Discover where you are in the filesystem.

THE CONCEPT

Your working directory

The shell always has a current folder. pwd prints its full path, so you know where relative paths will start.

pwd

pwd → print working directory

YOUR UNIX TASK

Print the path of your current directory.

Read this topic in the guide ↗
Practice files

Each lesson starts fresh. These files exist only in this browser session.

Command reference

A focused simulator. No commands run on your computer.

Unix practice · Bash simulator
Your practice shell is ready.
Type a Unix command below. Use help to see what is available.

LEARN IN PARALLEL

On Windows

READ ONLY

Same idea, different shells. These examples assume equivalent practice files; you don’t need to enter them.

Command Prompt · CMD

cd

With no argument, CMD’s cd shows the current drive and directory. In Bash, cd with no argument goes home instead.

Microsoft reference ↗

PowerShell

Get-Location

Shows the current PowerShell location. On the filesystem, the Path property is the directory path.

Microsoft reference ↗
Progress saved on this device