$ command gs
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GPL Ghostscript 8.70: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
$ which gs
alias gs='git status'
/opt/rh/rh-git29/root/usr/bin/git
我如何为重影脚本执行which
,以便找到它的路径,有点像which $(command gs)
?
一种方法肯定是先取消gs
的联络。
$ unalias gs
$ which gs
/usr/bin/gs
有更好的方法吗?
type which
:输出
$ type which
which is aliased to `alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
我在一台公司机器上工作。来自@Cyrus的评论显示which
是alias
的别名。这样做的效果应该是:
$ /usr/bin/which gs
/usr/bin/gs