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
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,