1.showrev
show machine, software revision, and patch revision information
2.命令uname
print name of current system.参数 -a :Prints basic information currently available from the system.
3.查看/etc/release
原文出处:http://blog.csdn.net/andkylee/article/details/5396350