git日常使用
二、查看Linux系统版本的命令(3种方法):

1、lsb_release -a,即可列出所有版本信息:

[[email protected] ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

这个命令适用于所有的Linux发行版,包括RedHat、SUSE、Debian…等发行版。

2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:

[[email protected] home]# cat /etc/redhat-release
CentOS release 6.5 (Final)

3、cat /etc/issue,此命令也适用于所有的Linux发行版。

[[email protected] home]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2021-09-06
  • 2021-04-05
  • 2021-08-04
  • 2021-07-03
  • 2021-11-22
  • 2021-06-13
猜你喜欢
  • 2021-03-29
  • 2021-10-17
  • 2021-07-31
  • 2021-11-21
  • 2021-12-12
  • 2021-11-30
  • 2021-10-23
相关资源
相似解决方案