What version of Linux do I have? Find out at command line

www.lautt‮iru‬.com
What version of Linux do I have? Find out at command line

There are several ways to find out which version of Linux you are running at the command line. Here are a few options:

  1. Use the lsb_release command: This command displays information about the Linux distribution, including the version and codename. To use it, simply type lsb_release -a at the command prompt.

  2. Use the uname command: This command displays information about the Linux kernel, including the version. To display the kernel version, use the -r option: uname -r.

  3. Check the /etc/os-release file: This file contains information about the Linux distribution, including the version and codename. To view the contents of the file, use the cat command: cat /etc/os-release.

  4. Check the /etc/redhat-release file (for Red Hat-based distributions): This file contains information about the Red Hat-based distribution, including the version. To view the contents of the file, use the cat command: cat /etc/redhat-release.

  5. Check the /etc/lsb-release file (for Ubuntu and other Debian-based distributions): This file contains information about the Ubuntu or Debian-based distribution, including the version. To view the contents of the file, use the cat command: cat /etc/lsb-release.

By using one of these methods, you should be able to find out which version of Linux you are running at the command line.

Created Time:2017-10-30 14:27:33  Author:lautturi