分类: LINUX
2011-04-26 11:22:03
|
-q (query)
-l (list)
例如,输入:rpm -ql dhclient
在终端上会显示:
/etc/NetworkManager
/etc/NetworkManager/dispatcher.d
/etc/NetworkManager/dispatcher.d/11-dhclient
/etc/dhcp
/etc/dhcp/dhclient.d
/sbin/dhclient
/sbin/dhclient-script
/usr/lib/pm-utils/sleep.d/56dhclient
/usr/share/doc/dhclient-4.2.0
/usr/share/doc/dhclient-4.2.0/LICENSE
/usr/share/doc/dhclient-4.2.0/README.dhclient.d
/usr/share/doc/dhclient-4.2.0/RELNOTES
/usr/share/doc/dhclient-4.2.0/dhclient.conf.sample
/usr/share/doc/dhclient-4.2.0/dhclient6.conf.sample
/usr/share/man/man5/dhclient.conf.5.gz
/usr/share/man/man5/dhclient.leases.5.gz
/usr/share/man/man5/dhcp-eval.5.gz
/usr/share/man/man5/dhcp-options.5.gz
/usr/share/man/man8/dhclient-script.8.gz
/usr/share/man/man8/dhclient.8.gz
/var/lib/dhclient
从中就可以知道配置文件的位置,或者获取其他信息