Find a command and understand how to use it with which and type — Cheat Sheet Linux
which
which <COMMAND>
displays the path to the executed command when the <COMMAND>
command is executed.
The arguments are:
-a <COMMAND>
: displays the matches in thePATH
variable in the order of execution.
type
type
describes a command and indicates how it works.
The arguments are:
-a
: lists the variants of the specified command.