OSのバージョン確認
uname を使う方法 (伝統的)
/etc にあるファイルを見る方法 (バラツキあり)
lsb_release を使う。
code:console
$ uname -a
Linux localhost.localdomain 4.18.0-80.11.2.el8_0.x86_64 #1 SMP Tue Sep 24 11:32:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)