问题描述
$ 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
如何为ghostscript做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