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

linux查看系统信息


linux如何系统信息
拿到一个系统,肯定要看看系统配置,linux下看配置,可没有windows那么直观。你只能一个一个查看。
一:cpu
[root@srv /]# more /proc/cpuinfo | grep "model name"
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
[root@srv /]# grep "model name" /proc/cpuinfo
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
[root@srv /]# grep "model name" /proc/cpuinfo | cut -f2 -d:
Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz
二:内存
[root@srv /]# grep MemTotal /proc/meminfo
MemTotal:        614400 kB
[root@srv /]# free -m
                   total        used        free    shared     buffers    cached
Mem:          600       23       576           0           0     &


相关文档:

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 TCP Socket程序分析

/************************
c语言编写的tcp socket通信的server端。
可以持续监听myprot指定的端口
打印端口接收到的字符流
头文件因为尖括号被转义,所以用了引号
************************/
#include "stdio.h"
#include "stdlib.h"
#include "errno.h"
#include "string.h& ......

Linux Find 命令精通指南

Linux Find 命令精通指南
作者:Sheryl Calish
简单介绍这一无处不在的命令的强大的方面以及混乱的方面。
2008 年 7 月发布
Linux find 命令是所有 Linux 命令中最有用的一个,同时也是最混乱的一个。它很难,因为它的语法与其他 Linux 命令的标准语法不同。但是,它很强大,因为它允许您按文件名、文件类型、用户甚至 ......

Linux Daemon Writing HOWTO


This document shows how to write a daemon in Linux using GCC. Knowledge of Linux and a familiarity with C are necessary to use this document. This HOWTO is Copyright by Devin Watson, under the terms of the BSD License.
1. Introduction: What is a Daemon?
2. Getting Started
3. Planning Your Daemo ......

LINUX下新硬盘挂载

关于新硬盘的挂载主要有几个步奏:(我用的是Ubuntu9.10)
一.首先查看自己的设备,用命令 fdisk -l
   youlong@ubuntu:~$ sudo fdisk -l
   Disk /dev/sda: 10.7 GB, 10737418240 bytes
   255 heads, 63 sectors/track, 1305 cylinders
   Units = cylinders of 16065 * 51 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号