查看Linux系统版本


  1. 通过命令cat /etc/redhat-release,主要针对redhat系列,redhat,centos都可以通过此命令查看。
  2. cat /proc/version #查看版本信息,uname -a #查看版本和内核
  3. lsb_release -a(使用命令时提示command not found,需要安装yum install redhat-lsb -y)
  4. cat /etc/issue(此命令也适用于所有的Linux发行版)

penzi 2023年9月27日 10:40