How to find OS details in Linux

To find the operating system details in different Linux flavors, you can use various commands in the terminal. Here are some examples:

  1. For Debian and Ubuntu:
  • To check the version of the distribution: lsb_release -a
  • To check the kernel version: uname -r
  • To check the CPU architecture: uname -m
  1. For Red Hat and CentOS:
  • To check the version of the distribution: cat /etc/redhat-release
  • To check the kernel version: uname -r
  • To check the CPU architecture: uname -m
  1. For Fedora:
  • To check the version of the distribution: cat /etc/fedora-release
  • To check the kernel version: uname -r
  • To check the CPU architecture: uname -m
  1. For Arch Linux:
  • To check the version of the distribution: cat /etc/os-release
  • To check the kernel version: uname -r
  • To check the CPU architecture: uname -m

These are just a few examples, but there are many other commands and variations depending on the distribution and version you are using.

The codes (if any) mentioned in this post can be downloaded from github.com. Share the post with someone you think can benefit from the information

Share this