基础知识 -- 分清内核版本号和发行版本号的区别
内核版本号:?????
?? 所有linux都是使用kernel.org上的内核来作为发行版的基础,所以内核版本号的高低大致能体现该linux版本的新旧。
???以Redhat AS4为例,?查看内核版本号:
?? [root@lq ~]# uname -r
???2.6.9-5.ELsmp?
?
发行版本号:???
?发行版本的版本号完全是各发行商自己定义的,不能用来和其它发行版本的版本号进行比较。发行版本号只是各个厂商为 了区别自己的产品而编的号。
? 以Redhat AS 4为例, 查看发行版本号:
[root@lq ~]# cat /etc/issue
? Red Hat Enterprise Linux AS release 4 (Nahant)
? Kernel \r on an \m
[root@lq ~]# cat /etc/*release*
? LSB_VERSION="1.3"
?Red Hat Enterprise Linux AS release 4 (Nahant)
?
几个uname命令常用选项的说明, 也是我们在接触到一台linux 服务器时,首先应该获取的信息:
[root@lq ~]# uname --help
? -s, --kernel-name??????? print the kernel name
? -n, --nodename?????????? print the network node hostname
? -r, --kernel-release???? ?print the kernel release
? -m, --machine??????????? ? print the machine hardware name
? -p, --processor????????? ? print the processor type
? -i, --hardware-platform? print the hardware platform