whereis:tldr:b7e55
whereis: Locate binaries for gcc in `/usr/bin/` only.
$ whereis -b -B ${-usr-bin-} -f ${gcc}
try on your machine
The command whereis
is a Linux command that is used to locate the binary, source, and manual page files for a given command or program.
The specific command you provided, whereis -b -B ${-usr-bin-} -f ${gcc}
, has the following options and arguments:
-b
: This option is used to search for binary (executable) files only.-B ${-usr-bin-}
: This option specifies the base of the paths to search for binary files. In this case, it is set to${-usr-bin-}
, which seems to be a placeholder value. The actual value should be substituted.-f ${gcc}
: This option searches for manual page (documentation) files related to the given command or program. In this case, it is searching for the manual page for thegcc
command. Again,${gcc}
appears to be a placeholder value to be substituted with the actual value.
To summarize, this command is used to locate the binary (executable) file for a command, as well as its associated manual page file, specifically for the gcc
command. The exact values for ${-usr-bin-}
and ${gcc}
need to be substituted with actual values for the command to work correctly.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.