Skip to content
Clairos Learn

Terminal basics · Lesson 29 of 34 · 8 minutes

Builtins and executable paths

Compare shell builtins with commands found on PATH.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Distinguishing shell builtins from executable commands helps operators explain what they know before they change anything.

type
Describe the shell command resolution for a supported name.

Shell builtins and external commands are not resolved in exactly the same way.

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
$ type cd
cd is a shell builtin in the simulated terminal

Exit status: 0. The command completed successfully in the training fixture.

$ type ls
ls is /bin/ls

Exit status: 0. The command completed successfully in the training fixture.

$ which ls
/bin/ls

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Builtins and executable paths”, which interpretation is safe?

Apply it elsewhere

Before adapting the type workflow from “Builtins and executable paths” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Output capture contractTry an incident drill

Anonymous 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.

Keep learning

  1. 01Escaped spacesUse a backslash to keep an escaped space inside one path argument.Practice
  2. 02Output capture contractPrint a predictable marker, capture it, and read it back.Practice
  3. 03Absolute and relative path reportResolve relative names into full canonical paths.Practice