平时看到比较有用的命令记录下来,以备不时之需。
1 查看系统运行时间
top
top - 09:31:39 up 15 days, 5:13, 3 users, load average: 0.00, 0.00, 0.00
-
[root@node5 AutomationTest]# uptime
-
16:00:17 up 15 days, 11:41, 3 users, load average: 0.00, 0.00, 0.00
2 查看rpm包信息
rpm -qpi xxx.rpm
-
[root@szn-adm-build build]# rpm -qpi heartbeat-3.0.3-2.3.el5.i386.rpm
-
Name : heartbeat Relocations: (not relocatable)
-
Version : 3.0.3 Vendor: (none)
-
Release : 2.3.el5 Build Date: Thu 15 Jul 2010 05:31:06 PM HKT
-
Install Date: (not installed) Build Host: localhost
-
Group : System Environment/Daemons Source RPM: heartbeat-3.0.3-2.3.el5.src.rpm
-
Size : 260824 License: GPLv2 and LGPLv2+
-
Signature : (none)
-
URL :
-
Summary : Messaging and membership subsystem for High-Availability Linux
-
Description :
查看系统中已经安装的
rpm -qai xxx
3 lvm 管理工具
dmsetup manages logical devices that use the device-mapper driver
-
[root@aaa bundles]# dmsetup ls
-
vg02-share (253, 2)
-
vg03-common (253, 4)
-
vg01-root (253, 1)
-
vg02-root (253, 3)
-
vg01-share (253, 0)
4 查看用户的uid和gid
id
5 mount支持的文件系统类型
-
adfs, affs, autofs, cifs, coda, coherent, cramfs, debugfs, devpts, efs,
-
ext, ext2, ext3, hfs, hpfs, iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4, ramfs, reis-
-
erfs, romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos, usbfs, vfat, xenix, xfs, xiafs.
通过man 8 mount看到的
6 查看硬件信息
dmidecode
7 查看scis盘信息
阅读(3671) | 评论(0) | 转发(0) |