[关闭]
@zwh8800 2017-08-23T02:03:11.000000Z 字数 250 阅读 190811

两条命令查找程序在哪个软件包

blog 归档 运维 备忘


两条命令查找程序在哪个软件包


假如想查找ifconfig在那个软件包中.

  1. $ whereis ifconfig
  2. ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
  3. $ apt-file search /sbin/ifconfig
  4. net-tools: /sbin/ifconfig

有缩进表示程序的输出. 先用whereis命令大致找出想查询的程序在路径的哪里, 再用apt-file search就可查出程序在哪个包中

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注