Mission 27

Command locations

Use which to understand how shells find commands.

Terminal basics
6 minutes Core Lesson 27 of 360
which
Lesson 27 of 360 0/360 lessons 0/17 missions Terminal basics · 6 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 6 minutes

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

Locate nano

Run which nano.

which nano
Locate systemctl

Run which systemctl.

which systemctl
Locate ufw

Run which ufw.

which ufw
Lesson support

What to notice while you play.

Objective

Understand PATH lookup at a beginner-friendly level.

Hint

Try which nano and which systemctl.

Why it matters

Knowing where commands come from helps debug confusing PATH issues.

Common mistakes
  • Assuming every command is built into the shell.
  • Trusting an unknown command path without checking it.
Reference

Commands in this lesson.

which <command>

Locate command paths.