Then you are better off using which . Rather than search all the usual system directories, which searches only those directories in your PATH or path environment variable . It returns the full path to the program that you are using. If you find yourself typing a command that you know is right and being told your syntax is faulty, it may be that you are using System V syntax with the BSD version of the command, or vice versa . This is the system's way of dissing you.
People often combine which and whereis .
You have found the command you wanted.