Mission 02

Paths and shortcuts

Practice absolute paths, relative paths, dot, dot-dot, and home shortcuts.

Terminal basics
7 minutes Beginner Lesson 2 of 360
cdpwdls
Lesson 2 of 360 0/360 lessons 0/17 missions Terminal basics · 7 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 7 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Enter projects

Run cd projects.

cd projects
Print the project path

Run pwd.

pwd
Return home

Run cd ~.

cd ~
Lesson support

What to notice while you play.

Objective

Learn how the shell resolves common path shortcuts.

Hint

Use cd projects, cd .., and cd ~ as separate moves.

Why it matters

Path mistakes are a common cause of editing or deleting the wrong file.

Common mistakes
  • Typing cd /home when you meant cd ~.
  • Using .. repeatedly without checking pwd.
Reference

Commands in this lesson.

pwd

Print the current working directory.

ls [-la] [path]

List lab files and folders.

cd [path]

Change directories inside the lab filesystem.

lsof

Show simulated files and sockets opened by services.