which这个命令在ubuntu中用来查找系统中指定的可执行文件。

用法:

which <exec filename>

例子:查找可执行文件nano

r@ubt:/$ which nano
/bin/nano