WHEREIS(1) WHEREIS(1) whereis - , whereis [] [-BMS I<>... -f] I<>... whereis , . s., . whereis Linux , $PATH $MANPATH. ( -b, -m -s) . . , whereis -bm ls tr -m gcc <> <> <>. -B, -M -S _>. , whereis -m ls -M /usr/share/man/man1 -f cal <> , <> /usr/share/man/man1. -b . -m . -s . -u . , . , <> , . -B , whereis , , . -M _> , whereis info, , . -S _> , whereis , , . -f , . , - -B, -M -S. -l , whereis. -B, -M -S, , . -g Interpret the next names as a glob(7) patterns. whereis always compares only filenames (aka basename) and never complete path. Using directory names in the pattern has no effect. Don't forget that the shell interprets the pattern when specified on the command line without quotes. It's necessary to use quotes for the name, for example: whereis -g 'find*' -h, --help . -V, --version . , whereis , -. $PATH $MANPATH, . , , -l. -B, -M -S , -l. WHEREIS_DEBUG=all . /usr/bin, /usr/man/man1 /usr/src, : cd /usr/bin whereis -u -ms -M /usr/man/man1 -S /usr/src -f * whereis util-linux, Linux . util-linux 2.41 2025-03-29 WHEREIS(1)