which

I. Description

The 'which' command is used to get the location of a command line interface command.

II. Example

Example 2.1

Using the 'which' command to display the location of the grep program.
                    
                        john@comp:~$
                        which grep
                        /usr/bin/grep