Locate a command.
Synopsis
which <command> [command...]
Description
Prints the path of the given command(s). Built-in commands resolve to /usr/bin/<name>; .jsh scripts (skill-provided commands) resolve to their actual VFS path.
Examples
$ which ls
Print /usr/bin/ls.
$ which gh
Print the VFS path of a skill-provided command.
Notes
Exit code 0 if all commands are found, 1 if any are not found. Use this to tell a genuine built-in (/usr/bin/*) apart from a command provided by a skill.
See Also
commands, help, man