command: whereis
usage: locate the binary, source, and manual page files for a command
syntax: $ whereis [options] file
examples:
1. To find out where a specific linux command exists
$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz
2. To find out the executable for a specific command is available
$ whereis -b ls
ls: /bin/ls
3. To search only for manual sections
$ whereis -m ls
ls: /usr/share/man/man1/ls.1.gz
4. To locate source of Linux command
$ whereis -s ps
5. To locate unusual entries using -u option
$ whereis -m -u lsgrep
lsgrep:
it checks the command lsgrep source, binary and man pages
if its an unusual entry it throws the above output
$ whereis -m -u grep
$
it checks for grep source, binary and man page if find
whereis returned nothing and exits normally.
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines