您的位置:首页 > 运维架构 > Linux

Linux 学习笔记(三)- 查看Linux版本系统信息方法汇总

2016-04-20 16:56 876 查看
Linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。
  1、# uname -a (Linux查看版本当前操作系统内核信息)
  Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux
  2、# cat /proc/version (Linux查看当前操作系统版本信息)
Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)
(gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003
  3、# cat /etc/issue 或cat /etc/redhat-release(Linux查看版本当前操作系统发行版信息)
  Red Hat Linux release 9 (Shrike)

  4、# cat /proc/cpuinfo (Linux查看cpu相关信息,包括型号、主频、内核信息等)

uname -a :显示系统名、节点名称、操作系统的发行版号、操作系统版本、运行系统的机器 ID 号

Print certain system information. With no OPTION, same as -s.
-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
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit
Report bugs to <bug-coreutils@gnu.org>.
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -n
MSF-XWEzhl1
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -a
Linux MSF-XWEzhl1 2.6.27.37-0.1-pae #1 SMP 2009-10-15 14:56:58 +0200 i686 i686 i386 GNU/Linux
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -s
Linux
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -r
2.6.27.37-0.1-pae
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -v
#1 SMP 2009-10-15 14:56:58 +0200
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -m
i686
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -p
i686
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -i
i386
ms1@MSF-XWEzhl1:~/workspace/active/AppPlatform/bin> uname -o
GNU/Linux
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux