Co robi WHEREIS użycie. Konsola filenames are first stripped of leading pathname components and any.

Czy przydatne?

Polecenie whereis

Wykonanie, użycie: Locate the binary, source, and manual page files for specified commands/files. The supplied filenames are first stripped of leading pathname components and any (single) trailing extension of the form .ext (for example, .c). Prefixes of s. resulting from use of source code control are also dealt with. whereis then attempts to locate the desired program in a list of standard Linux directories (/bin, /etc, /usr/bin, /usr/local/bin/, etc.)

Opcje wykonania whereis w konsoli

-b

Search only for binaries.

-f

Terminate the last directory list and signal the start of filenames. Required when the -B, -M, or -S option is used.

-m

Search only for manual sections.

-s

Search only for sources.

-u

Search for unusual entries—that is, files that do not have one entry of each requested type. Thus, the command whereis -m -u * asks for those files in the current directory that have no documentation.

-B directories

Change or otherwise limit the directories to search for binaries.

-M directory

Change or otherwise limit the directories to search for manual sections.

-S directory

Change or otherwise limit the directories to search for sources.

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

Przykład WHEREIS 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 znaczy.
Przykład WHEREIS użycie :
Jak użyć Print current user ID. Equivalent to id -un krzyżówka.
Przykład WHEREIS użycie :
Jak użyć 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 co to jest.
Przykład WHEREIS 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 WHEREIS 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.