In this tutorial, How do I check Linux version for Linux distribution? Linux the essential for DevOps Roles.
Check RHEL / CentOS / Fedora distribution
Look at the content of “/etc/redhat-release”
[huupv@huupv devopsroles]$ cat /etc/redhat-release
The screen output terminal:
Check systemd-based distribution
This method will work on a modern version Linux distribution.
[huupv@huupv devopsroles]$ cat /etc/os-release
Check Debian-based distribution
Run command lsb_release -a
$ lsb_release -a
From the bash shell,
[huupv@huupv devopsroles]$ ( source /etc/os-release && echo "$PRETTY_NAME" )
The screen output terminal:
Using uname command print information the current system
[huupv@huupv devopsroles]$ uname -a
The screen output terminal:
Linux huupv 4.18.11-200.fc28.x86_64 #1 SMP Sun Sep 30 15:31:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Conclusion
Thought the article, you can use Check Linux version as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!