码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2016-04-20 18:11:31      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:linux

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 学习笔记(三)- 查看Linux版本系统信息方法汇总

标签:linux

原文地址:http://531601621.blog.51cto.com/4888913/1765880

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!