当寻找的路径,可执行文件或检查,如果你在Unix shell中输入命令的名称会发生什么,有不同的公用事业过多(which,type,command,whence,where,whereis,whatis,hash,等)。
which
type
command
whence
where
whereis
whatis
hash
我们经常听说which应该避免。为什么?我们应该用什么来代替?
shell history which portability
history ×1
portability ×1
shell ×1
which ×1