terminal.cab
No.
28
Date
Learning goal
Terminal Start, lesson 8
Level
2 of 3

Command of the day No. 28: type and which

Purpose: Shows what really runs when you type a command.

Syntax: type name, which name

Example:

type cd
cd is a shell builtin
type ls
ls is /usr/bin/ls
which ls
/usr/bin/ls

Output from the simulator, as on a real Linux.

Options:

Distributions: On Debian and Ubuntu, ls is often an alias for colors. type shows that, which does not.

Try it in the terminal Share image

Fills in the command. Nothing runs until you press Enter.

Command of the day No. 28: type and which. Purpose: Shows what really runs when you type a command. Example: type cd; type ls; which ls. Remember: type knows builtins and aliases, which only searches PATH.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far