Golang-Which

module
v0.0.0-...-3c463d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2016 License: GPL-2.0

README

Which

NAME

which - locate a command

SYNOPSIS

which [-a] filename ...

DESCRIPTION

which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given as commands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. It does not follow symbolic links.

OPTIONS

  • -a: print all matching pathnames of each argument
  • -h, -help: show this help message and exit

EXIT STATUS

code description
0 if all specified commands are found and executable
1 if one or more specified commands is nonexistent or not executable
2 if an invalid option is specified

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL