On Ubuntu Linux you can use the following commands to find out the information about the Linux kernel and Ubuntu release:
Tutorial details | |
---|---|
Difficulty | Easy (rss) |
Root privileges | No |
Requirements | None |
Time | 1m |
- uname command – Display name and information about current kernel.
- /proc/version file – Same as uname command.
- lsb_release command – Display Ubuntu Linux distribution version and release information.
How to find Ubuntu Linux kernel version
Type the following command:
$ uname -r
Sample outputs:
3.2.0-51-generic
OR
$ uname -a
Sample outputs:
Linux b1 3.2.0-51-generic #77-Ubuntu SMP Wed Jul 24 20:18:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
The above output indicates that I am using Linux kernel version 3.2.0 on Ubuntu. You can use the cat command to display the same information:
$ cat /proc/version
How to find the Ubuntu Distribution version
Type the following command:
$ lsb_release -a
Sample outputs:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise
The same information can be obtained by typing the following comamnd
$ cat /etc/lsb-release
OR
$ cat /etc/*-release
Sample outputs:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
Related media
This tutorial is also available in a quick video format:
Video 01: Find The Linux Kernel Version Command Tutorial
🐧 Please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 1 comment... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
I ‘m a student of IT, doing special research in LINUX.