查看linux是32位还是64位,以及系统的版本信息

Wednesday, July 14, 2010

-bash-4.0# getconf LONG_BIT
64

-bash-4.0# cat /etc/issue
Ubuntu 9.10 \n \l

-bash-4.0# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

-bash-4.0# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

This entry was tagged Linux and tips

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top