1.查看内核版本

cat /proc/version
uname -r

2.查看Linux版本

lsb_release -a
cat /etc/issue
cat /etc/redhat-release (仅限redhat)