查这个系统是不是Linux, 是哪个发行版的Linux
#uname -a如果这个Linux是Redhat出的,可以从下面文件中获取它是Redhat出的什么版本的Linux
#cat /etc/redhat-release查看Linux系统是多少位的系统,32位的还是64位的
#uname -i I386表示32位系统; X86_64 表示64位系统版本
查看机器类型,看cpu是32位的还是64位的
#uname -m引用来源于网络上的:可以通过以下命令查看版本号:
1. cat /etc/redhat-release#这是属于redhat系列里专有的一个文件,debian则是/etc/debian_version
2. uname -a
3. cat /etc/issue#说明:这条指令可以查看Linux属于哪个distribution,maybe Debian、RHEL or others。
4. cat /proc/version(好像这个全一些)
5. lsb_release -a[root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.2 (Tikanga)[root@localhost ~]# cat /proc/version Linux
version 2.6.18-92.el5PAE (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc
version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:31:02
EDT 2008[root@localhost ~]# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise Linux Server release 5.2 (Tikanga)Release: 5.2Codename: Tikanga[root@localhost ~]# uname -aLinux localhost.localdomain 2.6.18-92.el5PAE #1 SMP Tue Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux[root@localhost ~]# uname -s
Linux[root@localhost ~]# uname -nlocalhost.localdomain[root@localhost ~]# uname -r #kernel version(2.6)+release(18-92),PAE表示该服务器使用了物理地址扩展的kernel版本,下面有PAE的解释2.6.18-92.el5PAE[root@localhost
~]# uname -v
#还没弄明白这是什么信息,只知道这是跟kernel版本有关的一个时间,但绝不是我们通常所说的“kernel
version”,难道这是一种新的以时间来标识kernel版本的方法?不太像啊,有待确认。#1 SMP Tue Apr 29 13:31:02 EDT 2008[nianzong@mysql ~]$ uname -v#1 SMP Fri Jan 26 14:15:14 EST 2007[root@localhost ~]# uname -m #
i686[nianzong@mysql ~]$ uname -mx86_64[root@localhost ~]# uname -p #可识别CPU是32位还是64位i686[nianzong@mysql ~]$ uname -px86_64[root@localhost ~]# uname -i #可识别服务器硬件是32位还是64位平台i386[nianzong@mysql ~]$ uname -ix86_64[root@localhost ~]# uname -oGNU/Linux[root@localhost ~]# uname --helpUsage: 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 exitReport bugs to .kernel-PAE
If Anaconda (the centos installer) detects a PAE compatible processor it will install kernel and kernel-pae
kernel-PAE (x86-only): Contains a kernel with support for 64GB of
memory on x86 systems through Physical Address Extensions (PAE). Only
x86 CPUs that support PAE can run this kernel. This kernel is provided
because x86 systems can't address more than 4GB of memory without PAE
extensions.
阅读(1103) | 评论(0) | 转发(0) |