Thursday, November 28, 2013

Which Command Examples in Linux

Linux Which Command Examples

Command: which

Command Usage: locate a command

Syntax: $ which -a filename

            -a print all matching pathnames of each argument

Example For Which 
Command:

    $ which -a gcc gdb ls open grep

    /usr/bin/gcc
    /usr/bin/gdb
    /bin/ls
    /bin/open
    /bin/grep

Which Command Examples in Linux

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers