uname

-a, --all
print all information, in the following order, except omit -p
and -i if unknown:

-s, --kernel-name
print the kernel name

-n, --nodename
print the network node hostname

-r, --kernel-release
print the kernel release

cat /etc/redhat-release   看linux的版本

posted @ 2019-03-10 21:40  todayORtomorrow  阅读(112)  评论(0)    收藏  举报