• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

How to Get Linux Distro Name and Kernel Version from the Command Line

July 31, 2017 by Ryan Leave a Comment

If you are using Linux as a development environment, to install a new utility, or for an almost infinite number of other reasons, it may be helpful to get the current version from the command line.

Get Current Ubuntu Version From Command Line

If you are an Ubuntu or Debian user, you can get the latest distro from the command line by running the following:

lsb_release -a

Get Current Distro Version from Command Line Redhat/CentOS/Fedora

CentOS and Fedora are based on Redhat. You can get the current distribution by issuing the following commands:

# CentOS ONLY
cat /etc/centos-release 

# CentOS/Redhat/Fedora
cat /etc/redhat-release 

Get the Current Linux Kernel Version from the Command Line

Sometimes it is helpful to find the latest kernel version of the Linux distro you are running. You can get this info by running:

uname -a

Filed Under: Linux Tagged With: get distro, linux, unix

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in