linuxÏÂÍøÂçÁ÷Á¿¼à¿Ø¹¤¾ß¶þ
ÒòΪ×ölinux³£³£»áÒª×ölinuxϵÄÁ÷Á¿²é¿´£¬ÏÂÃæµÄÈý¸ö·½·¨ÄܺܺõĽâ¾öµ±Ç°Á÷Á¿²é¿´
iftop¹¤¾ß
ÓÃ;: ÓÃÀ´¼´Ê±¼à¿´Íø·״̬ºÍ¸÷ipËùʹÓõÄƵ¿í
iftop ¹Ù·½ÍøÕ¾:
http://www.ex-parrot.com/~pdw/iftop/
°²×°iftop£¬£¬±ØÐëÏÈ°²×°libpcap
http://www.tcpdump.org/release/
wget http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz
tar -zxvf libpcap-0.9.8.tar.gz
cd libpcap-0.9.8
./configure
make;make install
pcap°²×°Íê³É£¬ÔÙÀ´°²×°iftop
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make;make install
¼à¿Øeth1µÄÍø¿¨µÄÁ÷Á¿
# iftop -i eth1
ÒÔλԪ×é(bytes)Ϊµ¥Î»ÏÔʾÁ÷Á¿(Ô¤ÉèÊÇλԪbits):
$ iftop -B
Ö±½ÓÏÔʾIP, ²»½øÐÐDNS·´½â:
$ iftop -n
Ö±½ÓÏÔʾÁ¬½Ó²º±àºÅ, ²»ÏÔʾ·þÎñÃû³Æ:
$ iftop -N
ÏÔʾij¸öÍø¶Î½ø³ö·â°üÁ÷Á¿
$ iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0
ÆäËû²ÎÊý¿ÉÏ iftop -h ¿´ËµÃ÷.
½øÈëiftop»Ãæʱ, ¿É°´ p Çл»ÊÇ·ñÏÔʾÁ¬½Ó²º, n Çл»ÏÔʾIP»òÖ÷»úµÄdomain name, NÇл»ÏÔʾÁ¬½Ó²º´úºÅ»òÃû³Æ, pÔÝÍ£ÏÔʾ, bÇл»ÊÇ·ñÏÔʾ³¤Ìõ, BÇл»¼ÆË㼸ÃëÄÚµÄƽ¾ùÁ÷Á¿, ÆäËû°´¼ü¿ÉÒÔ°´h¹Û¿´ËµÃ÷.
É趨µµµÄλÖÃÔÚ~/.iftoprc , ¹ØÓÚÉ趨µµµÄд·¨¿ÉÒԲο¼ iftop µÄ info page.
nload
ÓÃ;: ÓÃÀ´¼´Ê±¼à¿´Íø·״̬ºÍ¸÷ipËùʹÓõÄƵ¿í
nloadĬÈϵÄÊÇeth0Íø¿¨£¬Èç¹ûÄãÏë¼à²âeth1Íø¿¨µÄÁ÷Á¿
#nload eth1
nloadĬÈÏ·ÖΪÉÏÏÂÁ½¿é£ºÉϰ벿·ÖÊÇ£ºIncomingÒ²¾ÍÊǽøÈëÍø¿¨µÄÁ÷Á¿£¬Ï°벿·ÖÊÇ£ºOutgoing£¬Ò²¾ÍÊÇ´ÓÕâ¿éÍø¿¨³öÈ¥µÄÁ÷Á¿£¬Ã¿ ²¿·Ö¶¼Óе±Ç°Á÷Á¿£¨Curr£©£¬Æ½¾ùÁ÷Á¿£¨Avg£©£¬×îСÁ÷Á¿£¨Min£©£¬×î´óÁ÷Á¿£¨Max£©£¬×ܺÍÁ÷Á¿£¨Ttl£©Õ⼸¸ö²¿·Ö£¬¿´ÆðÀ´»¹ÊÇÂùÖ±¹ÛµÄ¡£
ÁíÍ⣬ÄãÒ²¿ÉÒÔ×Ô¼º¶¨ÒåÁ÷Á¿ÊýÖµÏÔʾµÄµ¥Î»
#nload --help
¾Í¿ÉÒÔ¿´µ½¾ßÌåµÄÏà¹Ø²ÎÊýÁË¡£
²é¿´ÍøÂçƽ¾ùÁ÷Á¿
ÏÂÃæµÄ½Å±¾¿ÉÒԺܺõļà¿ØÄãµÄÍøÂçµÄƽ¾ùÁ÷Á¿,Äã¿ÉÒÔÌᶨʱ¼ä
#!/bin/bash
echo -n "which nic?"
read eth
echo "the nic is "$eth
echo -n "how much seconds:"
read sec
echo "duration is "$sec" seconds, wait please..."
infirst=$(awk '/'$eth'/{print $1 }' /proc/net/dev |sed 's/'$eth'://')
outfirst=$(awk '/'$eth'/{print $10 }' /proc/net/dev)
sumfirst=$(($infirst+$outfirst))
sleep $sec"s"
inend=$
Ïà¹ØÎĵµ£º
Linuxϵͳµ÷ÓÃ--accessº¯ÊýÏê½â
2007-07-30 23:10
¡¾accessϵͳµ÷Óá¿
¹¦ÄÜÃèÊö£º
¼ì²éµ÷Óýø³ÌÊÇ·ñ¿ÉÒÔ¶ÔÖ¸¶¨µÄÎļþÖ´ÐÐijÖÖ²Ù×÷¡£
Ó÷¨£º
#include <unistd.h>
#include <fcntl.h>
int access(const char *pathname, int mode);
²ÎÊý£º
pathn ......
Ê×ÏÈÒª°²×°samba
sudo apt-get install samba
sudo apt-get install smbfs
1.windows ·ÃÎÊ ubuntu
ÏÂÃæÎÒÃÇÀ´¹²ÏíȺ×é¿É¶ÁдÎļþ¼Ð£¬¼ÙÉèÄãÒª¹²ÏíµÄÎļþ¼ÐΪ£º /home/ray/shareÊ×ÏÈ´´½¨Õâ¸öÎļþ¼Ð
´úÂë:
mkdir /home/ray/share
chmod 777 /home/ray/share
±¸·Ý²¢±à¼smb.confÔÊÐíÍøÂçÓû§·ÃÎÊ
´úÂë:
sudo cp /etc ......
ÍøÉϵÄÎÄÕ¿ÉÄܲ»ÊǺÜÈ«¡£
ÏÂÃæÁгöÎҵIJÙ×÷³É¹¦µÄÒ»¸öÁ÷³Ì
linux
ϵͳ
NFS
·þÎñ¶ËÅäÖ÷½·¨ÈçÏ£º
(1)
ÐÞ¸Ä
/etc/exports,
Ôö¼Ó¹²ÏíĿ¼
ÀýÈ磺
¡¡¡¡
/export/home/sunky 10.140.133.23(rw)
¡¡¡¡
/export/home/sunky1 *(rw)
¡¡¡¡
/export/home/sunky2 linux-client(rw)
/opt/o ......
LinuxÄں˵ÄARMÄÚ´æ¹ÜÀíÊÇÒ»¸öÄѿеĹÇÍ·£¬Ö®ËùÒÔÒª¿ªÊ¼¿ÐËü£¬ÊÇÒòΪÎÒËùÄܼûµ½µÄÎÄÕ£¬ÎÞ²»ÊÇΪX86ÌåϵËùд£¬ÓëÆäµÈ´ý¹ØÓÚARMµÄÎÄÕ³ö¯£¬²»Èç×Ô¼º¶¯ÊÖ£¬¿´ÄÜ·ñ·áÒÂ×ãʳ¡£
Õâ¸ö¹ÇÍ·ÊÇÈç´ËµÄÄѿУ¬ÒÔÖÁÓÚÎÒÖ»Êǽ«Õâ¿é¹ÇÍ·¼ñÆðÀ´·¿´ÁËһϣ¬¾Í·¢ÏÖÎÞ´ÓÏÂ×죬¶ø±ØÐëÒªÊ×ÏÈÑо¿Í¸³¹DDI0304ºÍDDI0406ÕâÁ½ÆªÎĵµÖйØÓÚMMUµÄÄÚÈ ......
²âÁ¿Íø¿¨µÄÍøÂçÁ÷Á¿£¬linuxÏÂÓÐÁ½¿îС¹¤¾ßnloadºÍiftop
ÏÂÔØÔ´Îļþºóconfigue && make && make install
¸öÈ˱ȽÏϲ»¶iftop£¬ËüÄܶ¯Ì¬µÄÓüòµ¥µÄASCͼ±êʶÍø¿¨µ±Ç°Á÷Á¿
Ê×ÐÐÊÇÍøÂçÁ÷Á¿¿Ì¶È£¬
ÖмäÊÇÓëÆäËü»úÆ÷µÄÁ÷Á¿£¬Óиö°×µ×µÄbarÖ±¹ÛµÄ±êʶÁ÷Á¿±ä»¯£¬ºóÈýÁÐÊý¾Ý·Ö±ð±íʾ£º
1. preceding 2 seco ......