首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在输入命令时找到执行的二进制文件?

如何在输入命令时找到执行的二进制文件?
EN

Ask Ubuntu用户
提问于 2012-09-29 12:32:14
回答 2查看 2.9K关注 0票数 7

我刚刚安装了TeX-Live 2012,但我仍然

代码语言:javascript
复制
moose@pc07:~$ latex --version
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.42; using libpng 1.2.42
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
Compiled with poppler version 0.12.4

所以我想知道当我进入latex --version时执行的二进制文件在哪里。这个是可能的吗?

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2012-09-29 14:13:50

type命令内置于bash (which是一个独立的程序)。

代码语言:javascript
复制
type latex

如果传递type选项,则-a命令还可以区分shell别名、shell函数和独立程序:我有ls的别名

代码语言:javascript
复制
$ type -a ls
ls is aliased to `ls -F'
ls is /bin/ls
票数 9
EN

Ask Ubuntu用户

发布于 2012-09-29 12:46:25

您可以使用

which latex

去找出一个双筒望远镜的位置。

票数 11
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/194408

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档