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