linix下如何查看硬件配置和常用的命令.doc
文本预览下载声明
linux下如何查看硬件配置和
常用的命令
一、查看操作系统的版本和机器型号 2
1、查看操作系统的版本 2
2、查看机器型号 2
3、查看所有硬件的信息 2
二、查看硬件的详细情况 3
1、查看内存大小 3
2、查看CPU信息(型号)等 4
3、查看硬盘及分区情况 5
4、查看网卡信息 5
三、常用的一些服务器维护命令 7
1、查看内存使用情况 8
2、服务器磁盘使用情况 8
3、查看服务器的平均负载 9
4、查看系统整体性能情况 9
5、查看系统已载入的相关模块 9
6、如何查找PCI设置 11
7、解决linux默认root用户不能直接远程登录问题 12
四、linux常用的命令 12
1、启动,关机命令 13
2、Shell相关命令 13
3、用户管理相关命令 13
4、系统相关命令 14
5、文件操作相关命令 14
6、文件编辑相关命令 15
7、压缩/解压相关命令 15
8、控制外设的相关命令 15
9、进程及任务相关命令 15
linux下如何查看硬件配置和常用的命令
由于公司用的linux服务器挺多,大家不像用widows那样常用,很多新同事可能对linux不是很熟悉,而要安装好多软件又不像windows那样直接双击就行,需要了解机器的硬件信息和系统版本等,故写了本文,希望能抛砖引玉。
一、查看操作系统的版本和机器型号
1、查看操作系统的版本
[root@testes5 etc]# uname –a(此命令在UNIX下也通用)
Linux testes5 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
2.6.18-92.el5这里显示了系统内核的版本,el5说明本系统是Enterprise Linux 5,对于redhat linux也可以用下面的命令查看到系统的详细版本号:
[root@testes5 etc]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[root@testes5 etc]# cat /etc/issue | grep Linux
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
或是:[root@testes5 ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release: 5.2
Codename: Tikanga
2、查看机器型号[root@testes5 etc]# dmidecode | grep Product Name
Product Name: VMware Virtual Platform
Product Name: 440BX Desktop Reference Platform
3、查看所有硬件的信息
[root@testes5 ~]# dmidecode | more
# dmidecode 2.7
SMBIOS 2.31 present.
45 structures occupying 1654 bytes.
Table at 0x000E0010.
Handle 0x0000, DMI type 0, 20 bytes.
BIOS Information
Vendor: Phoenix Technologies LTD
Version: 6.00
Release Date: 12/06/2006
Address: 0xE78A0
Runtime Size: 100192 bytes
ROM Size: 64 kB
Characteristics:
ISA is supported
PCI is supported
PC Card (PCMCIA) is supported
PNP is supported
显示全部