易截截图软件、单文件、免安装、纯绿色、仅160KB

查看window、Linux和Aix机CPU位数和操作系统版本

题记:今天看到一篇关于查看CPU和操作系统信息的文章,转过来和大家分享一下,O(∩_∩)O!
了解cpu架构   http://blog.csdn.net/wyzxg/archive/2009/12/17/5027738.aspx
前两天简单总结了cpu架构,今天总结下查看各种os系统的位数和cpu硬件支持的位数,因为这些我们在日常工作中要经常用到的,作为日常的一个备忘录,总结下可以加强自己的记忆,也可以让自己在总体上有个认识;每间隔一段时间就总结下,慢慢你会发现优点是大大滴啊
1.查看linux的操作系统和硬件cpu位数
linux 操作系统的位数查看
getconf LONG_BIT 如果是32表示是32位
eg:
[root@db ~]# getconf LONG_BIT
32
[root@db ~]# getconf WORD_BIT
32
或者通过cat /proc/cpuinfo也可以查看
再或者
[root@svr-db-test ~]# file /sbin/init
/sbin/init: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
查看cpu硬件架构
在Linux中使用命令arch可以初步查看出当前系统所识别出来的机器CPU类型,
如"i386", "i486","i586", "alpha", "sparc", "arm", "m68k",
"mips", "ppc","ia64","x86_64"等;ia64和x86_64就说明这台机器是64位的;
eg:
[root@db ~]# arch
i686
或者
[root@svr-db-test ~]# uname -m
x86_64
或者
[root@svr-db-test ~]# echo $HOSTTYPE
x86_64
2. 查看windows的操作系统和硬件cpu位数
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>systeminfo
主机名:           LUOBO-090566BDE
OS 名称:          Microsoft Windows XP Professional
OS 版本:          5.1.2600 Service Pack 3 Build 2600
OS 制造商:        Microsoft Corporation
OS 配置:          独立工作站
OS 构件类型:      Multiprocessor Free
注册的所有人:     微软用户
注册的组织:       微软中国
产品 ID:     &nb


相关文档:

Linux iptable文档

总览
用iptables -ADC 来指定链的规

,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......

Linux 的多线程编程的高效开发经验

2009 年 4 月 23 日
本文中我们针对 Linux 上多线程编程的主要特性总结出 5 条经验,用以改善 Linux 多线程编程的习惯和避免其中的开发陷阱。在本文中,我们穿插一些 Windows 的编程用例用以对比 Linux 特性,以加深读者印象。
背景
Linux 平台上的多线程程序开发相对应其他平台(比如 Windows)的多线程 API 有一些细微 ......

LINUX KERNEL VERSIONS SUPPORTED.

LINUX KERNEL VERSIONS SUPPORTED.
DOCUMENT DATE: May 10, 2010
This document lists the exact versions of Linux kernels supported by
DoubleVision Pro.
Due to subtle differences from one Linux kernel to another, a different
DoubleVision Pro driver is required. If your Linux kernel is not supported ......

【Linux交换分区】 交换分区格式浅析

完成本文,使用了两个工具
 1. strace
 2. google code search
.
----
swap分区有一个大小为PAGE_SIZE的页面,称为signature页,上面记录swap分区的基本信息。
static struct swap_header_v1 {
char bootbits[1024]; /* Space for disklabel etc. */
unsigned int version;
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号