Friday, March 11, 2011

Where is your shell?

Any shell or Unix/Linux commands can be located using "which" command. If the requested command or shell is available means it will return with absolute path.

Example:
volcano@volcano-laptop:~/shellscript$ which bash
/bin/bash
volcano@volcano-laptop:~/shellscript$ which ksh
/usr/bin/ksh
volcano@volcano-laptop:~/shellscript$ which ls
/bin/ls

No comments:

Post a Comment