8种机械键盘轴体对比
本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?
查看LINUX发行版的名称及其版本号的命令,这些信息对于添加正确的软件更新源很有用,而当你只能在命令行下工作的时候,下面的方法可以帮忙。
一、查看Linux内核版本命令:
1、cat /proc/version[[email protected] /]# cat /proc/version
Linux version 3.10.0-862.2.3.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed May 9 18:05:47 UTC 2018
2、uname -a[[email protected] /]# uname -a
Linux docker 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
二、查看Linux系统版本的命令:
1、lsb_release -a,即可列出所有版本信息:[[email protected] yum.repos.d]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.5.1804 (Core)
Release: 7.5.1804
Codename: Core
这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。
如果出现如下异常:-bash: lsb_release: command not found
解决方案:
yum install -y redhat-lsb
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:[[email protected] /]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
3、cat /etc/issue,此命令也适用于所有的Linux发行版。[[email protected] /]# cat /etc/issue
S
Kernel r on an m
如上,我本机出现S,而不是系统版本。
参考