type

Describe how a name is interpreted

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Tells you whether a word is an alias, function, builtin, keyword or file.

Common flags
FlagMeaning
-aShow all matches
-tPrint only the kind
Examples
type -a lsShow alias and binary · explain & risk-check →
type cdshows it is a builtin · explain & risk-check →
Related
which command alias
Open the full explainer →More in Shell & Scripting

Reference text is hand-written and may be incomplete — check man type for your version. Test destructive commands on a non-production system first.