uname -r
显示操作系统的发行版号
uname -a
显示零碎名、节点名称、操作系统的发行版号、内核版本等等
centOS
cat /etc/redhat-release
cat /etc/os-release
cat /proc/version
ubuntu
cat /etc/issue
sudo lsb_release -a
uname -r
显示操作系统的发行版号
uname -a
显示零碎名、节点名称、操作系统的发行版号、内核版本等等
centOS
cat /etc/redhat-release
cat /etc/os-release
cat /proc/version
ubuntu
cat /etc/issue
sudo lsb_release -a