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查看计算机的硬件信息(包括主板等)
相关文档:
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 ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
计算机“轻桌面”(
Light
desktop
)是一个新概念。将来人们能够做到:电脑加电立即可用,“轻桌面”即刻浮现。这个构思真是妙也!
所谓& ......
Red Hat Linux 学习笔记
1. 在linux 上和其他计算机共享文件,需要在linux上搭建ftp server (vsftp)
2. 启动linux上的ftp server 使用命令:service vsftpd start
3. ......
#include <stdio.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
#include <ctype.h>
#define STDIN 0
int main()
{
struct timeval tv = {0,0};
struct termios term , termbak;
& ......
今天碰到个问题,中文文件和带中文的目录通过SVN取到WINDOWS系统,然后通过SCP传到LINUX服务器之后,出现了文件名及目录名编码集改变的问题。(都变成了GBK)
最后通过下载一个linux专门用于转换 文件名和目录名 的工具,convmv
转换指令如下:
convmv -f [原始编码] -t [目标编码] -r(目录循环) --notest(实际改变,否 ......