Chinaunix首页 | 论坛 | 博客
  • 博客访问: 483397
  • 博文数量: 28
  • 博客积分: 858
  • 博客等级: 一等列兵
  • 技术积分: 852
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-02 14:13
文章分类

全部博文(28)

文章存档

2020年(1)

2019年(1)

2018年(5)

2017年(1)

2014年(1)

2013年(2)

2012年(17)

分类: LINUX

2013-02-17 15:31:12

  平时看到比较有用的命令记录下来,以备不时之需。
1 查看系统运行时间
  top
  top - 09:31:39 up 15 days,  5:13,  3 users,  load average: 0.00, 0.00, 0.00

点击(此处)折叠或打开

  1. [root@node5 AutomationTest]# uptime
  2. 16:00:17 up 15 days, 11:41, 3 users, load average: 0.00, 0.00, 0.00

2 查看rpm包信息
  
  rpm -qpi xxx.rpm

点击(此处)折叠或打开

  1. [root@szn-adm-build build]# rpm -qpi heartbeat-3.0.3-2.3.el5.i386.rpm
  2. Name : heartbeat Relocations: (not relocatable)
  3. Version : 3.0.3 Vendor: (none)
  4. Release : 2.3.el5 Build Date: Thu 15 Jul 2010 05:31:06 PM HKT
  5. Install Date: (not installed) Build Host: localhost
  6. Group : System Environment/Daemons Source RPM: heartbeat-3.0.3-2.3.el5.src.rpm
  7. Size : 260824 License: GPLv2 and LGPLv2+
  8. Signature : (none)
  9. URL :
  10. Summary : Messaging and membership subsystem for High-Availability Linux
  11. Description :
  查看系统中已经安装的
  rpm -qai xxx
3 lvm 管理工具
  dmsetup manages logical devices that use the device-mapper driver

点击(此处)折叠或打开

  1. [root@aaa bundles]# dmsetup ls
  2. vg02-share (253, 2)
  3. vg03-common (253, 4)
  4. vg01-root (253, 1)
  5. vg02-root (253, 3)
  6. vg01-share (253, 0)
  
4 查看用户的uid和gid
  id
5 mount支持的文件系统类型

点击(此处)折叠或打开

  1. adfs, affs, autofs, cifs, coda, coherent, cramfs, debugfs, devpts, efs,
  2. ext, ext2, ext3, hfs, hpfs, iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4, ramfs, reis-
  3. erfs, romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos, usbfs, vfat, xenix, xfs, xiafs.

  通过man 8 mount看到的

6 查看硬件信息

  dmidecode

7 查看scis盘信息

  

阅读(3623) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~