Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 2 章 获取系统信息

目录

2.1. 查看版本信息
2.2. System Infomation
2.2.1. Cpu Bit
2.2.2. dmesg - print or control the kernel ring buffer
2.3. Device information 设备信息
2.3.1. 硬件信息
2.3.2. 网络设备
2.3.3. USB 设备
2.3.4. 存储设备
2.3.5. 内存设备
2.3.6. PCI 设备
2.3.7. udev - Linux dynamic device management

2.1. 查看版本信息

Distribution information

To find your Ubuntu version: lsb_release -a

		
[root@localhost ~]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.2 (Final)
Release:        5.2
Codename:       Final


neo@netkiller:~$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.04.1
Release:        8.04
Codename:       hardy
		
		
$ head -n1 /etc/issue
Ubuntu 10.04 LTS \n \l