一 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 @   沈晓桐  阅读(8)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2018-11-20 H3C 维护命令
2018-11-20 H3C VLAN 配置
2018-11-20 H3C配置
2018-11-20 交换机基本配置(H3C)
2018-11-20 服务器维护 Windows Service 2008 R2 Enterprise Service Pack 1
点击右上角即可分享
微信分享提示