Find out where Unix/Linux executable binary is located

There are two commands that may help you to find where executable binary is located regardless it’s Unix or Linux system. They are whereis and type. First locates source/binary and manuals sections for specified files and second tells what exactly shell executes when you type a certain command.

The next picture shows examples of these commands work.

Find out where Unix/Linux executable binary is located

Advertisements

1 Response to “Find out where Unix/Linux executable binary is located”


  1. 1 Jon Buys September 1, 2008 at 2:07 am

    I’ve always used the command “which” for this task. As in

    # which ls
    /bin/ls
    #

    The difference between “whereis” and “which” may be that “whereis” searches standard binary locations, while “which” searches in the user’s PATH variable.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Archive


%d bloggers like this: