How to check your Linux version All In One
How to check your Linux version All In One
Checking your
Ubuntu
Version
There are two ways to check which version of Ubuntu you are running.
You can either check from within Unity
or put in a short command line
in the Terminal.
1. In Unity
Unity is the default desktop environment since Ubuntu 11.04 (Natty Narwhal). Please note that this method will only show a partial version number. If you need a full version number like 14.04.1 LTS instead of 14.04 LTS you will need to use the terminal method.
Open System Settings
Click on Details
Your version will be shown under the Ubuntu logo.
2. In the Terminal
This method will work no matter which version of Ubuntu or desktop environment you are running.
Open the Terminal (keyboard shortcut: Ctrl+Alt+T)
Enter the command
$ lsb_release -a
Your version will be shown on the Description line.
https://help.ubuntu.com/community/CheckingYourUbuntuVersion
solutions
$ hostnamectl
$ cat /etc/os-release
$ lsb_release -a
Ubuntu
CentOS
$ lsb_release -a
demos
$ hostnamectl
Static hostname: rpi4b
Icon name: computer
Machine ID: ac3dd221fe304afe9304f9767e8b4420
Boot ID: 8e6e20f3864e441aa37824866c7c3872
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 6.1.21-v8+
Architecture: arm64
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
old
c9.io
❌
https://ide.c9.io/xgqfrms/codefree
https://codefree-xgqfrms.c9users.io/index.html
How to use the shell command to get the version of Linux Distributions All In One
如何使用 shell 命令获取 Linux 发行版的版本
https://www.cnblogs.com/xgqfrms/p/17444194.html
Vim
快速入门
Linux REPL
https://www.lanqiao.cn/courses/2/learning/?id=16
refs
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/5891198.html
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
2015-09-21 php 安装 yii framework notice-error 的解决方案!