Finding location of command executed

Possible Duplicate:
Can a Bash script tell what directory it's stored in?

Is there a command-line function ( bash ) to find the location of the command you've executed?

I understand I could check my $PATH for things I've imported manually but there must be some way to do this. A tricky echo command or something?


whereis ,还请参阅which type

链接地址: http://www.djcxy.com/p/9756.html

上一篇: bash脚本不在nohup中运行,但可以独立运行

下一篇: 查找执行的命令的位置