Using whereis

To find a command and its documentation, you can use the whereis command. For example, if you are looking for the fdisk command, you can do this:

matthew@seymour:~$ whereis fdiskfdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.