2011年9月21日

diff 文件格式说明 @@ -l,s +l,s @@

摘要: @@ -l,s +l,s @@The hunk range information contains two hunk ranges. The range for the hunk of the original file is preceded by a minus symbol, and the range for the new file is preceded by a plus symbol. Each hunk range is of the format l,s where l is the starting line number and s is the number of 阅读全文

posted @ 2011-09-21 15:44 longzhao&&dilanlx 阅读(3361) 评论(0) 推荐(1)

[转载] Linux下判断cpu物理个数,几核,是超线程还是多核心

摘要: 如果系统包含两个物理封装,每个封装中又包含两个支持超线程(HT)技术的处理器内核,则 /proc/cpuinfo 文件将包含此数据。(注:数据并不在表格中。)查看方法: less /proc/cpuinfoprocessor01234567physical id01010101core id02130213siblings44444444cpu cores22222222可通过如下方法查询CPU情况:1.逻辑CPU个数:# cat /proc/cpuinfo | grep "processor" | wc -l2.物理CPU个数: # cat /proc/cpuinfo | 阅读全文

posted @ 2011-09-21 15:29 longzhao&&dilanlx 阅读(224) 评论(0) 推荐(0)

dhclient 退出的原因

摘要: 虚拟机默认以DHCP方式启动,之后如果关掉DHCP服务。虚拟机无法重新获得IP地址。查找原因发现执行命令 ps ax |grep dhc 不存在 dhclient进程。 重新启动虚拟机后,执行命令: ps ax|grep dhc 得到以下结果: -bash-3.2# ps ax|grep dhc 952 ? Ss 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid eth0 1261 xvc0 S+ 0:00 grep dhc 上网查找dhcl.. 阅读全文

posted @ 2011-09-21 14:24 longzhao&&dilanlx 阅读(3769) 评论(0) 推荐(1)

导航