Check your Linux distribution and version.

Check your Linux distribution and version.

●For CentOS7 system

[root@Lion ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

●For Fedora systems

[root@Lion ~]# cat /etc/fedora-release

●For Ubuntu systems

[root@Lion ~]# cat /etc/lsb-release

For Debian systems

[root@Lion ~]# cat /etc/debian_version

For SuSE Linux systems

[root@Lion ~]# cat /etc/SuSE-release

 

If you don’t know the file name, look for a file with release in the /etc directory.
You will find a file named OS name+release.

タイトルとURLをコピーしました