Command locations
Use which to understand how shells find commands.
Understand the pattern
Knowing where commands come from helps debug confusing PATH issues.
which- Find the simulated executable path for a command.
A path lookup does not prove that running the command will succeed.
Worked example and expected result
$ which nano/usr/bin/nano
Exit status: 0. The command completed successfully in the training fixture.
$ which systemctl/usr/bin/systemctl
Exit status: 0. The command completed successfully in the training fixture.
$ which ufw/usr/sbin/ufw
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Environment variablesTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.