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
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
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
未经授权禁止转载,违者必究!