Searching for commands on Unix

Sometimes when you forget the exact command on unix but know what its supposed to do, you can use the nice “search” feature that’s built into “man”.

man-k

it searches all the man pages on the machine and retrieves the commands for you!

Example:
man –k memory
Gives you all the commands that have to do with memory…

apropos is a wrapper for man –k. so you can use that too.

Advertisements

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

%d bloggers like this: