Skip to content

Command line interface

Cédric Belin edited this page Aug 30, 2024 · 2 revisions

From a command prompt, verify that the which program is properly installed by running the following command:

$ lix run which --help

Find the instances of an executable in the system path.

> which [flags] <command>

    command : The name of the command to find.

  Flags:
          --all, -a : List all instances of executables found (instead of just the first one).
         --help, -h : Display this help.
      --version, -v : Output the version number.

Then, invoke it to find the instances of an executable command:

lix run which haxe
# /usr/bin/haxe

lix run which --all haxe
# /usr/bin/haxe
# /usr/local/bin/haxe
Clone this wiki locally