- which
which
which shows the path to the given command(s)
$ which grep
/usr/bin/grep
$ which echo
/bin/echo
$ which perl
/home/vagrant/localperl/bin/perl
$ which ls
/bin/ls
$ which ll
(nothing printed)
which shows the path to the given command(s)
$ which grep
/usr/bin/grep
$ which echo
/bin/echo
$ which perl
/home/vagrant/localperl/bin/perl
$ which ls
/bin/ls
$ which ll
(nothing printed)