Chinaunix首页 | 论坛 | 博客
  • 博客访问: 899762
  • 博文数量: 194
  • 博客积分: 7991
  • 博客等级: 少将
  • 技术积分: 2067
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-09 22:03
文章分类

全部博文(194)

文章存档

2010年(8)

2009年(71)

2008年(109)

2007年(6)

我的朋友

分类: LINUX

2009-03-27 14:28:47

Sometimes we need to kown which package a command belongs to, and also what the other commands that package contains, here are the steps:
1. locate the absolute path of the command
[root@beta-host ~]# whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
2. find out the package
[root@beta-host ~]# rpm -qf /sbin/ifconfig
net-tools-1.60-78.el5
3. contents of the package
[root@beta-host ~]# rpm -ql net-tools-1.60-78.el5
/bin/dnsdomainname
/bin/domainname
/bin/hostname
/bin/netstat
/bin/nisdomainname
/bin/ypdomainname
/etc/netplug
/etc/netplug.d
/etc/netplug.d/netplug
/etc/netplug/netplugd.conf
/etc/rc.d/init.d/netplugd
/sbin/arp
/sbin/ether-wake
/sbin/ifconfig
/sbin/ipmaddr
/sbin/iptunnel
/sbin/mii-diag
…………

阅读(619) | 评论(0) | 转发(0) |
0

上一篇:I am waiting for you

下一篇:How to disable selinux

给主人留下些什么吧!~~