Linuxϵͳµ÷ÓÅ
1£¬ÏÔÖøÓ°ÏìϵͳÐÔÄܵÄ4ÖÖ×ÊÔ´
(1),CPUʱ¼ä
(2),ÄÚ´æ
(3),Ó²ÅÌI/O
(4),ÍøÂçI/O
2£¬·ÖÎöCPUʹÓÃÇé¿ö
ʹÓÃvmstat²É¼¯CPUµÄÐÔÄÜÆ¿¾±
[root@local]# vmstat 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 1 152 14244 19068 531804 0 0 13 106 673 496 9 0 90 1 0
1 0 152 18472 18964 526620 0 0 3124 0 4447 4735 45 5 35 16 0
2 0 152 17624 19036 527576 0 0 474 2244 1285 946 49 1 43 8 0
Óû§Ê±¼ä£¬ÏµÍ³Ê±¼ä£¬¿ÕÏÐʱ¼ä£¬µÈ´ýʱ¼ä·Ö±ðÔÚÓÒ±ßusÁУ¬syÁУ¬idÁУ¬waÁÐÖÐÏÔʾ¡£Óû§Ê±¼äÊý¾Ý½Ï´óÒ»°ã±íÃ÷¼ÆËã»ú´¦ÓÚÔËËã״̬£¬ÏµÍ³Ê±¼äÊý×ֽϴó±íÃ÷½ø³ÌÕý´¦ÓÚ´óÁ¿ÏµÍ³µ÷ÓûòÕßÖ´ÐÐI/O²Ù×÷¡£csÁÐÏÔʾµÄÊÇÿ¸öʱ¼ä¶ÎÖÐÉÏÏÂÎÄÇл»µÄ´ÎÊý£¬Ò²¾ÍÊÇÄÚºËÇл»µ±Ç°ÔËÐнø³ÌµÄ´ÎÊý¡£Ã¿¸öʱ¼ä¼ä¸ôÄÚµÄÖжÏÊý(Ó²¼þÉ豸»òÕßÄÚºË×é¼þ)ÔÚinÁÐÏÔʾ¡£
ÓµÓжà¸ö´¦ÀíÆ÷µÄ·þÎñÆ÷£¬mpstatÃûÀûÄܹ»¸ø³öµ¥¸ö´¦ÀíÆ÷£¬-P±êÖ¾Ä
Ïà¹ØÎĵµ£º
linuxϵͳÈçºÎץȡÊý¾Ý°ü½øÐзÖÎö
(2009-08-30 23:59:37) linuxÉÏÓÐÁ½ÖֱȽϺõÄ×¥°ü¹¤¾ß£ºetherealºÍtcpdump
¶ÔÓÚethereal£¬ÓÐͼÐνçÃæºÍ×Ö·û½çÃæÁ½ÖÖ·½Ê½¡£
µ½linuxϵͳÉÏÖ´ÐÐrpm -qa | grep ethereal-gnome¿É²é¿´ÊÇ·ñ°²×°ÁËͼÐΰ汾
µ«ÊÇÈç¹û·þÎñÆ÷ÉÏûÓÐxwinͼÐλ·¾³£¬ÄÇô¾ÍÖ»ÄÜÓÃ×Ö·û½çÃæÁË
ÃüÁtethereal
......
Linux C¡¡¡¡alarmº¯Êý---Çë¿´×îºó
¡¡¡¡alarmÒ²³ÆΪÄÖÖÓº¯Êý£¬Ëü¿ÉÒÔÔÙ½ø³ÌÖÐÉèÖÃÒ»¸ö¶¨Ê±Æ÷£¬µ±¶¨Ê±Æ÷Ö¸¶¨µÄʱ¼äµ½Ê±£¬ËüÏò½ø³Ç·¢ËÍSIGALARMÐźš£Òª×¢ÒâµÄÊÇ£¬Ò»¸ö½ø³ÌÖ»ÄÜÓÐÒ»¸öÄÖÖÓʱ¼ä£¬Èç¹ûÔÚµ÷ÓÃalarm֮ǰÒÑÉèÖùýÄÖÖÓʱ¼ä£¬ÔòÈκÎÒÔÇ°µÄÄÖÖÓʱ¼ä¶¼±»ÐÂÖµËù´úÌæ¡£
ËùÐèÍ·Îļþ
¡¡¡¡#include<unistd.h>
º¯Ê ......
·½·¨Ò»£º Expect ʵÏÖ½»»¥
UNIX ´°¿ÚÖÐ ÊäÈëÒÔÏÂÃüÁ
expect ftplinux.txt 10.0.15.22 ftplinux.txt
ftplinux.txt ÖÐÄÚÈÝÈçÏ£º
--¿ªÊ¼-----
spawn ftp [lindex $argv 0]
expect "Name(*):"
send "ftp\r"
expect "Password:*"
send "hell05a\r"
expect "ftp> ......
ת×Ô£º http://blog.csdn.net/kongqz/archive/2009/05/15/4184415.aspx
¾ÍÊÇÔÚÒÑÓеÄÊý¾Ý¿âʵÀýÉÏ´´½¨Ò»¸öеÄÕʺţ¬·ÃÎÊһЩеıí
²Ù×÷²½ÖèÈçÏ£º
1¡¢µÇ¼linux£¬ÒÔoracleÓû§µÇ¼£¨Èç¹ûÊÇrootÓû§µÇ¼µÄ£¬µÇ¼ºóÓà su - oracleÃüÁîÇл»³ÉoracleÓû§£©
2¡¢ÒÔsysdba·½Ê½À´´ò¿ªsqlplus£¬ÃüÁîÈçÏ£º s ......
shellÓï·¨£¨ÎåÏ
1.ÃüÁî¸ñʽ
2.ͨÅä·û
3.Öض¨Ïò
4.¹ÜµÀ
5.shellÖеÄÒýÓÃ
6.×Ô¶¯²¹ÆëÃüÁîÐÐ
ϵͳ¹ÜÀíά»¤
ls
pwd
cd
date
passwd
su
clear
man
who
w
uname
uptime
last
dmesg
free
ps
top
Îļþ¹ÜÀí±à¼
mkdir
more
cat
diff
grep
rm
touch
ln
file
cp
find
split
mv
ѹËõ½âѹ
zi ......