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

Linux下查看cpu类型、内存大小、硬盘大小类型等

CPU查看:
1、  # dmesg | grep CPU
  Initializing CPU#0
  CPU: Trace
cache: 12K uops
  CPU: L1 I-cache: 0K, L1 D-cache: 16K
  CPU: L2
cache: 256K
  Intel machine check reporting enabled on CPU#0.
  
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
  
CPU: Common caps: bfebfbff 00000000 00000000 00000000
  
CPU: Intel(R) Celeron(R) CPU 2.53GHz stepping 01
  microcode: CPU0
updated from revision 0x0 to 0x12, date = 11222004
2、  # cat
/proc/cpuinfo | grep name
  model name : Intel(R) Celeron(R) CPU
2.53GHz
3、  # rpm -q --queryformat "%{ARCH}\n" kernel
  i686

存:# cat /proc/meminfo
硬盘:# df命令查看大小
#hdparm -i /dev/hda查看型号
4、
dmidecode查看计算机的硬件信息(包括主板等)


相关文档:

Why do We Choose Linux?

Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer ......

linux下输出标准错误的方法


GNU glibc提供一个对printf的扩展,直接printf("%m"),可以输出标准的错误信息,例如下面:
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
int main()
{
         ......

Red Hat Linux 学习笔记


Red Hat Linux 学习笔记
 
1.       在linux 上和其他计算机共享文件,需要在linux上搭建ftp server (vsftp)
2.       启动linux上的ftp server 使用命令:service vsftpd start
3.       ......

dnw linux version

dnw in linux
Use xterm as a serial terminal. In Fedora 9
use "yum install screen" to install screen package.
Plug the USB-UART cable, see if there is a ttyUSB0 in /dev
Enter "screen /dev/ttyUSB0 115200,cs8,-ixon,-ixon,istrip" to connect to USB-UART.
Screen as Serial Terminal
Download the ......

Linux改变文件名和目录名的字符集

今天碰到个问题,中文文件和带中文的目录通过SVN取到WINDOWS系统,然后通过SCP传到LINUX服务器之后,出现了文件名及目录名编码集改变的问题。(都变成了GBK)
最后通过下载一个linux专门用于转换 文件名和目录名 的工具,convmv
转换指令如下:
convmv -f [原始编码] -t [目标编码] -r(目录循环) --notest(实际改变,否 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号