What is the purpose of the 'whereis' command?

The whereis command is used to locate the binary, source, and manual page files for a specified command in Unix-like operating systems.

Purpose:

  • Find Executables: It identifies the location of the executable files for commands.
  • Locate Source Files: It can find the source code files associated with the command.
  • Access Manual Pages: It helps locate the manual pages for documentation.

Example:

To find all related files for the gcc command, you would use:

whereis gcc

This command will return paths for the binary, source, and manual files associated with gcc.

If you have any more questions or need clarification, just let me know!

0 Comments

no data
Be the first to share your comment!