今天在www.loveunix.net看到有人说:“最近看solaris的SA-239,看看了,发现有点忘记AIX的命令了,晕哦。。比如 solaris的devfsadm对应的aix的查找新硬件的命令,一时就想不起来了。。多简单的命令阿,都有点忘记了。”
其实这事很好搞定,不管是什么平台只要会用man -k就好了。顺便举个例子,比如你忘记cfgmgr怎么写了,但你记得cfgmgr的作用是做config device的,那么这样试试吧:
$ man -k config |grep -i device
cfgmgr(1) - Configures devices and optionallyinstalls device software by running the programs specified in theConfiguration Rules object class.
lsallqdev(1) - Lists all configured printer andplotter queue device names within a specified queue.
redefinevg(1) - Redefines the set of physicalvolumes of the given volume group in the device configuration database.
restbase(1) - Reads the base-customizedinformation from the boot image, and restores it into the Device Configurationdatabase used during system boot phase 1.
savebase(1) - Saves information aboutbase-customized devices in the Device Configuration database onto the bootdevice.
synclvodm(1) - Synchronizes or rebuilds thelogical volume control block, the device configuration database, and thevolume group descriptor areas on the physical volumes.
$
OK,从上面的命令输出中,很容易就看到cfgmgr啦。
另外,我记得一些linux不支持man -k这个命令,那么也可以用apropos,这两个命令其实是一回事。
再另外,跟man -k有关的还有一个catman -w命令,如果你用不了man -k,就先让root用户运行catman -w,这个就不多罗嗦了。
========================================================
我也学一下别人,呵呵!
任何形式的转载,请写明出处:
email: [email protected]
website: http://blog.chinaunix.net/index.php?blogId=739
========================================================