which

Linux · System · available in the simulator

What it does

Locate an executable in the PATH.

Syntax

which [-a] comando...

Options and parameters

  • -a

    Print all matching pathnames in PATH, not just the first.

    which -a python3

Usage examples

  • which python
  • which -a python3
Practise which

Related commands