How to check Linux OS and kernel version using CLI
These notes are a personal reference on how to check Linux OS and kernel version using CLI. I reserve the right to be slightly inaccurate and will update this as it become functionally helpful to do so.
If you want version information, use uname. For example:
$ uname -a
Or type the following command:
$ uname -mrs
If you want distribution information, it will vary depending on your distribution and whether your system supports the Linux Standard Base. Some ways to check, and some example output, are immediately below.
$ lsb_release -a
Or type the following command to see Linux version info:
$ cat /proc/version