• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

Safely Check Linux Version Using Some Basic Commands

cloudibee by cloudibee
May 27, 2022
in Linux
0
0
SHARES
82
VIEWS
Share on FacebookShare on Twitter

Linux distribution is what most people refer to as Linux. However, Linux is the kernel that acts as a bridge between the hardware and software applications. In other words, it is the core component of the operating system.

Table of Contents

  • The Linux distribution
    • You might also like
    • Linux Change Password Command: Change password expiry in Linux
    • Top Open Source Email Servers
  • Steps to check Linux version
  • Using the cat /etc/os-release file
  • Using the lsb_release command
  • Using the hostnamectl command
  • Using the uname command
  • Using the /etc/issue file

The Linux distribution

A Linux distribution is composed of a Linux kernel, GNU libraries and tools, and software collections. Additionally, it includes desktop environments, package management system, and a set of applications that go with it.

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

Logging into a Linux system for the first time needs you to check the version running on the machine. If you can determine the Linux distribution, it can help you figure out which package manager you have to use in order to install new packages. At the same time, it may come in handy for security patches.

Basically, the most famous Linux distributions include Arch Linux, CentOS, Debian, Fedora, Kali Linux, Linux Mint, OpenSUSE, and Ubuntu. In this case, you can check the Linux version using the command line.

Steps to check Linux version

  • Open the Bash shell or terminal application
  • Use the SSH for remote server login with the syntax: ssh user@server-name
  • Choose one line from the following command options:
    • $ cat /etc/os-release
    • $ lsb_release -a
    • $ hostnamectl
  • Type ‘uname -r’ to find the Linux kernel version

Using the cat /etc/os-release file

This option will display basic information, but you can filter out specific items, such as the OS version and name with a particular command.

  • $ grep ‘^VERSION’ /etc/os-release
  • $ egrep ‘^(VERSION|NAME)=’ /etc/os-release

The display will determine the NAME=”CentOS Linux” and VERSION=”8 (Core)”. In each Linux distribution like the Alpine Linux, it offers the required OS information and version.

Using the lsb_release command

LSB stands for Linux standard base. When you use the lsb_release command, it will show the LSB and distribution-specific information on the command line interface. The syntax ‘$ lsb_release -a’ will display the LSB version, Distributor ID, Description, Release, and Codename.

Using the hostnamectl command

The hostnamectl command will query and change the system hostname and similar settings. You can use this to check the Linux kernel version and OS name. Just type ‘$ hostnamectl’ and you will be able to view the OS and the kernel, among other information.

Using the uname command

You can also display the Linux kernel version using the command ‘$ uname -r’ which will display a familiar set of information about the kernel. Similarly, you can use the syntax ‘$ cat /proc/version’ to display the Linux version on the screen.

Using the /etc/issue file

Another set of options include the following commands. The /etc/issue file has a system identification text printed before the login prompt. This file also has information about the Linux version.

  • $ cat /etc/issue
  • $ more /etc/issue
  • $ less /etc/issue

Overall, the most reliable option is query using /etc/os-release file with the grep or cat commands. On the other hand, the hostnamectl command can be used by systemd-based Linux distribution users.

You may also check the Linux distribution and version from the graphical interface when you are on a desktop environment.

Tags: CentOSCommands
Previous Post

Restart Apache2 Web Server in Ubuntu/Debian/RHEL/CentOS

Next Post

Gain Secure Connection Using the Ubuntu SSH Server

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

Gain Secure Connection Using the Ubuntu SSH Server

Leave a Reply Cancel reply

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

Premium Content

HP + Microsoft = More Questions than Answers | IT Industry Analyst Firm, Neovise

May 31, 2022

Netapp performance troubleshooting – nfs_hist

November 2, 2007

Knowledge11 Conference: Service-now.com, SaaS and IT 3.0

May 30, 2022

Browse by Category

  • Business
  • Cloud
  • Code
  • Debt
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lawyers
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

What are the best internet options for lawyers?

by samanvya
August 15, 2022
0
What are the best internet options for lawyers?

Meeting clients, questioning possible witnesses and getting in contact with other people in the case, or preparing for hearings with...

Read more

Recent News

Lifestyle

Best Gifts To Offer A Friend Who Owned A New House

July 22, 2022
Business

The main reasons for the startup fails. How to avoid failure?

July 21, 2022
Business

Hacks for packing wine glasses so they don’t break

July 21, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In