which(1)
lokalizuje polecenie
SKŁADNIA
which [-a] nazwa_pliku ...
OPIS
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 canonicalize path names.
OPCJE
- -a
-
wypisuje wszystkie pasujące ścieżki do każdego argumentu
KOD ZAKOŃCZENIA
- 0
-
jeśli odnaleziono wszystkie podane polecenia i są to pliki wykonywalne
- 1
-
jeśli jedno z podanych poleceń nie istnieje lub nie jest wykonywalne
- 2
-
jeśli podano nieprawidłową opcję