learning exercise · shell basics
Terminal 101: learn to navigate
The terminal and the file explorer are two views of the same thing — that's the whole trick. Type cd, ls, and mkdir on the left and watch the explorer follow; click a folder on the right and see exactly which command the click was hiding. Five small exercises, a sandboxed fake filesystem, nothing on your machine is touched.
where am I?
pwdprint working directory
Prints the full path of the folder you're standing in.
on Windows: cd
what's here?
lslist
Lists the files and folders inside the current folder.
on Windows: dir
move around
cd <folder>change directory
Steps into a folder. cd .. climbs back up one level.
create a folder
mkdir <name>make directory
Creates a new folder right where you are.
- Find yourself
- Look around
- Step inside a folder
- Climb back up
- Plant a folder of your own
Exercise 1 · Find yourself. Every terminal session starts somewhere. Print the full path of the folder you're standing in.
hint: pwd — clicking the explorer doesn't count; exercises only tick when you type.
cd in the terminal