`
Fangrn
  • 浏览: 801040 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

如何获取linux的版本和内核版本信息

阅读更多

在安装一些linux软件的时候一般需要先确认安装服务器的一些基本信息,当然也包含服务器的软件的版本和内核的版本了

有一个命令:

-bash-3.2$ pwd
/
-bash-3.2$ uname -a
Linux my.unix-center.net 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux
-bash-3.2$ 

 就是: uname,我们可以输入 uname --help 看其详细的帮助信息

-bash-3.2$ uname --help
Usage: uname [OPTION]...
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>.
-bash-3.2$
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics