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