Co robi WHICH użycie. Konsola which searches the user's $PATH environment variable.

Czy przydatne?

Polecenie which

Wykonanie, użycie: List the full pathnames of the files that would be executed if the named commands had been run. which searches the user's $PATH environment variable

Opcje wykonania which w konsoli

-a, --all

Print all matches, not just the first.

-i, --read-alias

Read aliases from standard input and write matches to standard output. Useful for using an alias for which.

--read-functions

Read shell functions from standard input and report matches to standard output. Useful for also using a shell function for which itself.

--skip-alias

Ignore --read-alias if present. Useful for finding normal binaries while using --read-alias in an alias for which.

--skip-dot

Skip directories that start with a dot.

--skip-functions

Ignore --read-functions if present. Useful when searching for normal binaries while using --read-functions in an alias or function for which.

--skip-tilde

Skip directories that start with a tilde (~) and executables in $HOME.

--show-dot

If a matching command is found in a directory that starts with a dot, print ./cmdname instead of the full pathname.

--show-tilde

Print a tilde (~) to indicate the user's home directory. Ignored if the user is root.

--tty-only

Stop processing options on the right if not on a terminal.

-v, -V, --version

Print version information and then exit.

--help

Print help information and then exit.

Przykłady which działanie w Słownik polecenie W

Przykład WHICH użycie :
Jak użyć manual page descriptions in the whatis database for each keyword and print a one-line description to standard output for each match. Like apropos , except that it searches only for complete words co znaczy.
Przykład WHICH użycie :
Jak użyć command repeatedly (by default, every two seconds) and display the output so you can watch it change over time. The command and any options are passed to sh -c , so you may need to use quotes to get krzyżówka.
Przykład WHICH użycie :
Jak użyć Print byte, word, and line counts for each file. Print a total line for multiple files . If no files are given, read standard input. See other examples under ls and sort co to jest.
Przykład WHICH użycie :
Jak użyć interactive file downloads from the Web. wget works in the background and can be used to set up and run a download without the user having to remain logged on. wget supports HTTP, HTTPS, FTP, as well słownik.
Przykład WHICH użycie :
Jak użyć Print summaries of system usage, currently logged-in users, and what those users are doing. w is essentially a combination of uptime , who , and ps -a . Display output for one user by specifying user czym jest.