Nvidia Unveils Futuristic Gaming Experience at Computex 2023
News

Nvidia Unveils Futuristic Gaming Experience at Computex 2023, Blending Gaming and AI

by Isabel
May 29, 2023
0

At Computex 2023, Nvidia displays a futuristic gaming experience that...

Read more
Adobe Introduces Powerful Generative AI Tools in Photoshop

Adobe Introduces Powerful Generative AI Tools in Photoshop Beta

May 29, 2023
Adobe Photoshop's Generative Fill Feature

Exploring the Power of Adobe Photoshop’s Generative Fill Feature

May 27, 2023
NVIDIA and Microsoft Partner to Accelerate AI

NVIDIA and Microsoft Partner to Accelerate AI

May 25, 2023
google photos security and privacy

Exploring the Top 5 Privacy and Security Risks of using Google Photos

May 24, 2023
How to Use ChatGPT in Linux Terminal

How to Use ChatGPT in Linux Terminal

May 19, 2023
LocalAI Drop-In Replacement for OpenAI's REST API

LocalAI: A Drop-In Replacement for OpenAI’s REST API

May 17, 2023
WebWhiz AI

WebWhiz AI: The Chatbot Platform That Can Help Your Business

May 16, 2023
Qdrant Vector Search Engine

Qdrant: Boost Your Search Capabilities with Efficient Vector Search

May 9, 2023
Mr. Ranedeer

Mr. Ranedeer: The AI Tutor That Can Help You Learn Anything

May 27, 2023
How to Get Midjourney AI for Free

How to Get Midjourney AI for Free

May 29, 2023
Cloudbooklet
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Linux

How to Check your Linux OS Version

by Cloudbooklet
October 4, 2021
in Linux
Reading Time: 3 mins read
Check Linux OS version
Share on FacebookShare on TwitterShare on WhatsAppShare on Telegram

Linux is a most popular open source OS used widely on many systems, servers and other machines like Raspberry Pi, etc. There are many variants out there in Linux which are known as distributions. The most common distributions are Ubuntu, Debian, SUSE, Mint, CentOS, Redhat, ArcLinux and many more.

It is better to know the version of your operating system when you update or install packages or installing security patches, etc.

You might also like

Install WordPress with Docker Compose, Nginx, Apache with SSL

WordPress Deployment Made Easy: Docker Compose, Nginx, Apache, SSL Setup Guide

May 20, 2023
How to Install WordPress on Docker

How to Install WordPress on Docker for Windows, macOS, and Linux

May 20, 2023

Some distributions like Ubuntu, Debian shows the version of the OS when you login as a welcome message. But this can be disabled manually.

In this guide you going to learn how to identify your Linux OS and the version installed on your machine.

There are many methods available out there to check the OS and version.

Using lsb_release command

This is the first command you want to try while identifying the installed OS and version. Most recent Linux distributions have this package installed which supports this command. LSB stands for Linux Standard Base which displays the basic information we need to know.

lsb_release -a
Output
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

Using os-release file

Every Linux distributions have a os-release file inside the etc directory. This file contains the detailed information of the operating system.

cat /etc/os-release
Output
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

You can use the grep command to filter out the version line alone.

grep 'VERSION' /etc/os-release

Using hostnamectl

hostnamectl is a tool to Control Linux System Hostname. This command outputs the hostname along with other system related details.

Now we can use grep to filter the output to display only the Operating system details.

hostnamectl | grep "Operating"
Output
Operating System: Ubuntu 20.04.3 LTS

Using proc file

The proc directory has a version file which outputs the OS release information. This file doesn’t outputs the OS version, but with the information you can find the version of your distribution.

cat /proc/version
Output
Linux version 5.11.0-1020-gcp ([email protected]) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #22~20.04.1-Ubuntu SMP Tue Sep 21 10:54:26 UTC 2021

Conclusion

Now you have learned how to identify the OS version of your Linux machine.

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Tags: CentOSDebianUbuntu
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Help us grow and support our blog! Your contribution can make a real difference in providing valuable content to our readers. Join us in our journey by supporting our blog today!
Buy me a Coffee

Related Posts

How to install python on Ubuntu

How to Install Python on Ubuntu 22.04?

May 31, 2023
what's new in node.js 20

What’s new in Node.js 20?

April 23, 2023
AutoGPT in Linux

How to download and install Auto GPT in Linux

May 4, 2023
10 Essential Tips for Securing Your Linux Server

10 Essential Tips for Securing Your Linux Server

April 10, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

  • Trending
  • Comments
  • Latest
DragGAN The AI-Powered Image Editing Tool

DragGAN: The AI-Powered Image Editing Tool That Makes Editing Images Easy

May 30, 2023
DragGAN AI editing Tool Install and Use DragGAN Photo Editor

DragGAN AI editing Tool Install and Use DragGAN Photo Editor

May 27, 2023
Bard API key

Everything You Need to Know About Google’s Bard API Key

May 20, 2023
Install PHP 8.1 on Ubuntu

How to Install or Upgrade PHP 8.1 on Ubuntu 20.04

May 17, 2023
DragGAN The AI-Powered Image Editing Tool

DragGAN: The AI-Powered Image Editing Tool That Makes Editing Images Easy

75
Upgrade PHP version to PHP 7.4 on Ubuntu

Upgrade PHP version to PHP 7.4 on Ubuntu

28
Install Odoo 13 on Ubuntu 18.04 with Nginx - Google Cloud

Install Odoo 13 on Ubuntu 18.04 with Nginx – Google Cloud

25
Best Performance WordPress with Google Cloud CDN and Load Balancing

Best Performance WordPress with Google Cloud CDN and Load Balancing

23
How to Setup SSH Keys on Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

May 31, 2023
ChatGPT app

The Easiest Way to Download ChatGPT App Free

May 31, 2023
LLM Connected with APIs

Gorilla: LLM Connected with APIs

May 31, 2023
Soundstorm-Pytorch

Soundstorm-Pytorch: A Powerful Tool for Audio Generation

May 30, 2023

Popular Articles

  • DragGAN The AI-Powered Image Editing Tool

    DragGAN: The AI-Powered Image Editing Tool That Makes Editing Images Easy

    1443 shares
    Share 577 Tweet 361
  • DragGAN AI editing Tool Install and Use DragGAN Photo Editor

    338 shares
    Share 135 Tweet 85
  • Auto-Photoshop-Stable Diffusion-Plugin: A New Way to Create AI-Generated Images in Photoshop

    70 shares
    Share 28 Tweet 18
  • InternGPT: A New Way to Interact with ChatGPT

    54 shares
    Share 22 Tweet 14
  • Midjourney vs Adobe Firefly: A Comparison of Two AI Image Generation Tools

    11 shares
    Share 4 Tweet 3
Cloudbooklet

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS

Cloudbooklet © 2023 All rights reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.