LinuxѹËõÓë½âѹËõ²ÎÊý˵Ã÷
tarÃüÁ tar [-cxtzjvfpPN] ÎļþÓëĿ¼ ....
# f+ E' `# d' W( {²ÎÊý£º & e( U# Y4 x; c$ b2 O; j/ p
-c £º½¨Á¢Ò»¸öѹËõÎļþµÄ²ÎÊýÖ¸Áî(create µÄÒâ˼)£»
. E' {. v5 ^ \' v3 O5 H, C' @- p& ^-x £º½â¿ªÒ»¸öѹËõÎļþµÄ²ÎÊýÖ¸Á 3 |& u2 z: k( A# ?% c
-t £º²é¿´ tarfile ÀïÃæµÄÎļþ£¡
9 ^; S) v9 H/ w. a/ Z2 sÌرð×¢Ò⣬ÔÚ²ÎÊýµÄÏ´ïÖУ¬ c/x/t ½öÄÜ´æÔÚÒ»¸ö£¡²»¿Éͬʱ´æÔÚ£¡
6 x C5 l, Y( n, w# C( P9 W5 PÒòΪ²»¿ÉÄÜͬʱѹËõÓë½âѹËõ¡£
1 _# l: \. w' S8 f* R-z £ºÊÇ·ñͬʱ¾ßÓÐ gzip µÄÊôÐÔ£¿Ò༴ÊÇ·ñÐèÒªÓà gzip ѹËõ£¿ + ~' `) N! d" d% D7 _
-j £ºÊÇ·ñͬʱ¾ßÓÐ bzip2 µÄÊôÐÔ£¿Ò༴ÊÇ·ñÐèÒªÓà bzip2 ѹËõ£¿
0 X- j4 k5 L+ r6 a-v £ºÑ¹ËõµÄ¹ý³ÌÖÐÏÔʾÎļþ£¡Õâ¸ö³£Ó㬵«²»½¨ÒéÓÃÔÚ±³¾°Ö´Ðйý³Ì£¡
, v6 q' X2 o" y1 I+ n-f £ºÊ¹ÓõµÃû£¬ÇëÁôÒ⣬ÔÚ f Ö®ºóÒªÁ¢¼´½ÓµµÃûร¡²»ÒªÔÙ¼Ó²ÎÊý£¡ 9 ^' N) A y' F V6 T+ r/ T
¡¡¡¡¡¡ÀýÈçʹÓẠtar -zcvfP tfile sfile¡»¾ÍÊÇ´íÎóµÄд·¨£¬ÒªÐ´³É * }% l+ z* w; u
¡¡¡¡¡¡¡º tar -zcvPf tfile sfile¡»²Å¶Ôร¡
$ @# j& H/ b- p; u% r& c9 @$ n4 @# m-p £ºÊ¹ÓÃÔÎļþµÄÔÀ´ÊôÐÔ£¨ÊôÐÔ²»»áÒÀ¾ÝʹÓÃÕ߶ø±ä£©
% U; o1 H, K" P% K5 V-P £º¿ÉÒÔʹÓþø¶Ô·¾¶À´Ñ¹Ëõ£¡ $ }; K! S: j; t; k
-N £º±ÈºóÃæ½ÓµÄÈÕÆÚ(yyyy/mm/dd)»¹ÒªÐµIJŻᱻ´ò°ü½øн¨µÄÎļþÖУ¡
. O: Q! M9 u" E4 `3 W--exclude FILE£ºÔÚѹËõµÄ¹ý³ÌÖУ¬²»Òª½« FILE ´ò°ü£¡ , J- ~5 t0 s% Y+ Z& |1 z. E
·¶Àý£º
2 I1 ^9 J# B9 A+ t/ Z+ E# o·¶ÀýÒ»£º½«Õû¸ö /etc Ŀ¼ÏµÄÎļþÈ«²¿´ò°ü³ÉΪ /tmp/etc.tar
1 i2 f$ O+ l, J[root@linux ~]# tar -cvf /tmp/etc.tar /etc<==½ö´ò°ü£¬²»Ñ¹Ëõ£¡
7 N. K1 F6 B) Y3 @; L4 Z[root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc<==´ò°üºó£¬ÒÔ gzip ѹËõ ! W! h6 i( @" o8 ^
[root@linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc<==´ò°üºó£¬ÒÔ bzip2 ѹËõ ( d- t5 m: k% x& u, F" W0 \# k4 B" r
# Ìرð×¢Ò⣬ÔÚ²ÎÊý f Ö®ºóµÄÎļþµµÃûÊÇ×Ô¼ºÈ¡µÄ£¬ÎÒÃÇÏ°¹ßÉ϶¼Óà .tar À´×÷Ϊ±æʶ¡£ 7 r. T* P0 b8 v& p
# Èç¹û¼Ó z ²ÎÊý£¬ÔòÒÔ .tar.gz »ò .tgz À´´ú±í gzip ѹËõ¹ýµÄ tar file ¡«
4 q8 V/ ^& ~. [# Èç¹û¼Ó j ²ÎÊý£¬ÔòÒÔ .tar.bz2 À´×÷Ϊ¸½µµÃû°¡¡«
, U3 }$ z9 H( j# ÉÏÊöÖ¸ÁîÔÚÖ´ÐеÄʱº
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃ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 ......
1. ²é¿´socket״̬
server1:~ # netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 257
CLOSE_WAIT 117
FIN_WAIT2 2
ESTABLISHED 228
2. #vi /etc/sysctl.conf
3. Ôö¼Ó
net.ipv4.tcp_keepalive_time = 120
net.ipv4.tcp_keepalive_probes = 2
&n ......
Ãæ¶Ô×ÅһЩºó׺Ϊtar¡¢tar.gz¡¢tar.bz2……¾ÍÓÐЩãȻÁË£¬
ÆäʵÀí½âÁË£¬×ÔÈ»¾ÍÓÈжø½âÁË¡£
Ê×ÏÈÒªÃ÷È·Ò»¸ö¸ÅÄlinuxÏÂÃæµÄ´ò°üºÍѹËõÊÇÁ½ÂëÊ£¬
Ò²¾ÍÊÇÄã¿ÉÒÔ¶ÔÎļþ½øÐдò°ü£¬µ«ÊDz»Ñ¹Ëõ¡£
À´¿´¸öÀý×Ó£º
ÔÚÎҵĸùĿ¼ÏÂÓиöÃûΪwallpaperµÄÎļþ¼Ð£¬ÀïÃæÊÇһЩǽֽ£¬
ÎÒÏÖÔÚ¶ÔÕâ¸öÎļþ¼Ð½øÐдò°ü£¬µ« ......
ÖÚËùÖÜÖªWindowsϵÄÎļþɾ³ýÖ®ºóÊÇÓпÉÄָܻ´µÄ£¬¶ÔÖØÒªÎļþ£¬ÎªÁËÔö¼Ó»Ö¸´µÄÄѶȣ¬ÎÒÃÇ¿ÉÒÔÓÃÎļþ·ÛË鹤¾ß½øÐÐÎļþ·ÛËé¡£ÎÒ×î³£ÓõÄÊǼ¯³Éµ½×ÊÔ´¹ÜÀíÆ÷ÖеÄEraser¡£ÄÇôÔÚLinuxÏÂÓÐûÓÐÀàËƵÄÈí¼þÄØ£¿ÎÒÔÚһֻ̨ÓÐUbuntuϵͳµÄÖ÷»úÉÏ£¬°²×°ÁËÒ»¸öÎļþ·ÛË鹤¾ßwipe£¬ÓÐЩÏë·¨£¬¼ÇÏÂÀ´¡£
°²×°£ºapt-get install wipe
wipe ......