Linux command: where

Quick startwhichCommand, used to display the storage location of the command

Suppose you have an executable command because it is in the shell path, but you want to know its location.

you can use itwhich. This command will return the path of the specified command:

whichOnly applicable to executable files stored on the disk, not applicable to aliases or built-in Shell functions.

ThiswhichThis command can be used in Linux, macOS, WSL and wherever you have a UNIX environment

Download mine for freeLinux Command Manual

More cli tutorials: