以 Ubuntu 18.04 LTS 为例
发行版本
$ cat /etc/issue
Ubuntu 18.04.4 LTS \n \l
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
内核版本
$ cat /proc/version
Linux version 4.15.0-88-generic (buildd@lgw01-amd64-036)
$ cat /proc/version_signature
Ubuntu 5.4.0-66.74-generic 5.4.86
$ uname -r
4.15.0-88-generic
同时查看
$ neofetch
qbit@qhost
------------
OS: Ubuntu 18.04.4 LTS x86_64
Host: Alibaba Cloud ECS pc-i440fx-2.1
Kernel: 4.15.0-72-generic
Uptime: 121 days, 11 hours, 46 mins
Packages: 739
Shell: bash 4.4.20
Resolution: 1536x864
Terminal: /dev/pts/0
CPU: Intel Xeon E5-2682 v4 (2) @ 2.500GHz
GPU: Cirrus Logic GD 5446
Memory: 360MiB / 3944MiB
$ screenfetch
qbit@qhost
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 4.15.0-72-generic
Uptime: 121d 11h 51m
Packages: 744
Shell: bash 4.4.20
Resolution: 1536x864
WM: Not Found
CPU: Intel Xeon E5-2682 v4 @ 2x 2.5GHz
GPU: cirrusdrmfb
RAM: 355MiB / 3944MiB
本文出自 qbit snap
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。