一 Linux 学习

  • 远程登录一台linux 后,怎么查看是 什么发行版。

一般来说  Linux 著名系统分两大类

  Redhat 系列:Redhat  centos fedora

  Debian 系列:Debian Ubuntu

 

  1. 有yum 命令的是 Redhat 系列,有apt-get 是Debian系列

  2.使用lsb_release -a  命令。

    

    可以看到是Ubuntu 20.04的发行版

  3.

  - Ubuntu:使用命令lsb_release -a或cat /etc/lsb-release
  - Debian:使用命令lsb_release -a或cat /etc/debian_version
  - CentOS:使用命令cat /etc/redhat-release或cat /etc/centos-release
  - Fedora:使用命令cat /etc/fedora-release
  - Arch Linux:使用命令cat /etc/os-release
  - openSUSE:使用命令cat /etc/os-release

posted @ 2023-11-20 15:13  沈晓桐  阅读(3)  评论(0编辑  收藏  举报