Posted by: Odzangba | July 29, 2007

Using Whereis…

I was playing around with the command line last night and came across the command “whereis”. This command is really handy. It locates the source, binary or man pages for a specified command. For instance, if I type

whereis gparted

I get the following output

gparted: /usr/bin/gparted /usr/bin/X11/gparted /usr/share/man/man1/gparted.1.gz

As you can see, it returns the paths of the binaries and man pages of the command gparted. Cool huh?

You may also find “which” useful… it returns the path to the binary of a specified command. For instance,

which testdisk

will return:

/usr/bin/testdisk

Ciao,
Odzangba.


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

Categories

%d bloggers like this: