Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux½âѹtarÃüÁî

 from: http://www.21andy.com/blog/20060820/389.html
linux½âѹ tarÃüÁî
tarÃüÁî
tar [-cxtzjvfpPN] ÎļþÓëĿ¼ ....
²ÎÊý£º
-c £º½¨Á¢Ò»¸öѹËõÎļþµÄ²ÎÊýÖ¸Áî(create µÄÒâ˼)£»
-x £º½â¿ªÒ»¸öѹËõÎļþµÄ²ÎÊýÖ¸Á
-t £º²é¿´ tarfile ÀïÃæµÄÎļþ£¡
Ìرð×¢Ò⣬ÔÚ²ÎÊýµÄÏ´ïÖУ¬ c/x/t ½öÄÜ´æÔÚÒ»¸ö£¡²»¿Éͬʱ´æÔÚ£¡
ÒòΪ²»¿ÉÄÜͬʱѹËõÓë½âѹËõ¡£
-z £ºÊÇ·ñͬʱ¾ßÓÐ gzip µÄÊôÐÔ£¿Ò༴ÊÇ·ñÐèÒªÓà gzip ѹËõ£¿
-j £ºÊÇ·ñͬʱ¾ßÓÐ bzip2 µÄÊôÐÔ£¿Ò༴ÊÇ·ñÐèÒªÓà bzip2 ѹËõ£¿
-v £ºÑ¹ËõµÄ¹ý³ÌÖÐÏÔʾÎļþ£¡Õâ¸ö³£Ó㬵«²»½¨ÒéÓÃÔÚ±³¾°Ö´Ðйý³Ì£¡
-f £ºÊ¹ÓõµÃû£¬ÇëÁôÒ⣬ÔÚ f Ö®ºóÒªÁ¢¼´½ÓµµÃûร¡²»ÒªÔÙ¼Ó²ÎÊý£¡
¡¡¡¡¡¡ÀýÈçʹÓẠtar -zcvfP tfile sfile¡»¾ÍÊÇ´íÎóµÄд·¨£¬ÒªÐ´³É
¡¡¡¡¡¡¡º tar -zcvPf tfile sfile¡»²Å¶Ôร¡
-p £ºÊ¹ÓÃÔ­ÎļþµÄÔ­À´ÊôÐÔ£¨ÊôÐÔ²»»áÒÀ¾ÝʹÓÃÕ߶ø±ä£©
-P £º¿ÉÒÔʹÓþø¶Ô·¾¶À´Ñ¹Ëõ£¡
-N £º±ÈºóÃæ½ÓµÄÈÕÆÚ(yyyy/mm/dd)»¹ÒªÐµIJŻᱻ´ò°ü½øн¨µÄÎļþÖУ¡
--exclude FILE£ºÔÚѹËõµÄ¹ý³ÌÖУ¬²»Òª½« FILE ´ò°ü£¡
·¶Àý£º
·¶ÀýÒ»£º½«Õû¸ö /etc Ŀ¼ÏµÄÎļþÈ«²¿´ò°ü³ÉΪ /tmp/etc.tar
[root@linux ~]# tar -cvf /tmp/etc.tar /etc<==½ö´ò°ü£¬²»Ñ¹Ëõ£¡
[root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc<==´ò°üºó£¬ÒÔ gzip ѹËõ
[root@linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc<==´ò°üºó£¬ÒÔ bzip2 ѹËõ
# Ìرð×¢Ò⣬ÔÚ²ÎÊý f Ö®ºóµÄÎļþµµÃûÊÇ×Ô¼ºÈ¡µÄ£¬ÎÒÃÇÏ°¹ßÉ϶¼Óà .tar À´×÷Ϊ±æʶ¡£
# Èç¹û¼Ó z ²ÎÊý£¬ÔòÒÔ .tar.gz »ò .tgz À´´ú±í gzip ѹËõ¹ýµÄ tar file ¡«
# Èç¹û¼Ó j ²ÎÊý£¬ÔòÒÔ .tar.bz2 À´×÷Ϊ¸½µµÃû°¡¡«
# ÉÏÊöÖ¸ÁîÔÚÖ´ÐеÄʱºò£¬»áÏÔʾһ¸ö¾¯¸æѶϢ£º
# ¡ºtar: Removing leading `/" from member names¡»ÄÇÊǹØ춾ø¶Ô·¾¶µÄÌØÊâÉ趨¡£
·¶Àý¶þ£º²éÔÄÉÏÊö /tmp/etc.tar.gz ÎļþÄÚÓÐÄÄЩÎļþ£¿
[root@linux ~]# tar -ztvf /tmp/etc.tar.gz
# ÓÉì¶ÎÒÃÇʹÓà gzip ѹËõ£¬ËùÒÔÒª²éÔĸà tar file ÄÚµÄÎļþʱ£¬
# ¾ÍµÃÒª¼ÓÉÏ z Õâ¸ö²ÎÊýÁË£¡ÕâºÜÖØÒªµÄ£¡
·¶ÀýÈý£º½« /tmp/etc.tar.gz Îļþ½âѹËõÔÚ /usr/local/src µ×ÏÂ
[root@linux ~]# cd /usr/local/src
[root@linux src]# tar -zxvf /tmp/etc.tar.gz
# ÔÚÔ¤ÉèµÄÇé¿öÏ£¬ÎÒÃÇ¿ÉÒÔ½«Ñ¹ËõµµÔÚÈκεط½½â¿ªµÄ£¡ÒÔÕâ¸ö·¶ÀýÀ´Ëµ£¬
# ÎÒÏȽ«¹¤×÷Ŀ¼±ä»»µ½ /usr/local/src µ×Ï£¬²¢ÇÒ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

cin EOF Linux

 ÎÒΪʲôдÕâ¸öÌâÄ¿ÄØ£¬ÒòΪÎÒ½ñÌìҪдµÄ²©ÓëÕâÈýÕ߶¼ÓйØϵ£¬ÖÁÉÙÎÒ¸öÈËÈÏΪÊÇÕâÑùµÄ¡£
ÓиöÈËÎÊÁËÒ»¸öÕâÑùµÄС³ÌÐò£¬ËµÓÐÎÊÌ⣺
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector <string*> spvec;
string str;
cout & ......

linux ½ø³Ì ״̬

http://blog.csdn.net/zengyang/archive/2009/01/07/3725320.aspx
http://tech.ccidnet.com/art/305/20071226/1322187_1.html 
State¡¡
½ø³ÌÔÚÖ´Ðйý³ÌÖлá¸ù¾Ý»·¾³À´¸Ä±ästate¡£Linux½ø³ÌÓÐÒÔÏÂ״̬£º¡¡
 
Running¡¡
½ø³Ì´¦ÓÚÔËÐУ¨ËüÊÇϵͳµÄµ±Ç°½ø³Ì£©»òÕß×¼±¸ÔËÐÐ״̬£¨ËüÔڵȴýϵͳ½«CPU·ÖÅä¸øËü£© ......

Unix/Linux ÍøÂç½Ó¿Ú¹ÜÀíÏà¹ØÃüÁî½éÉÜ


Unix/Linux ÍøÂç½Ó¿Ú¹ÜÀíÏà¹ØÃüÁî½éÉÜ
»ñÈ¡ÍøÂçÊÊÅäÆ÷ÁбíÐÅÏ¢
ÔÚ»ñÖªÍøÂç½Ó¿ÚʹÓÃ״̬֮ǰ£¬Äã¿ÉÄÜÐèÒªÖªµÀÄ㵱ǰµÄϵͳʹÓõÄÍøÂçÊÊÅäÆ÷£¬ÔÚ Linux ºÍ AIX Öв鿴ÍøÂçÉ豸Æ÷µÄÊôÐÔʹÓò»Í¬µÄÃüÁÏÂÃæµÄÀý×Ó¸ø³öÁËÔÚ²»Í¬ÏµÍ³ÉÏÈçºÎ²é¿´ÍøÂçÉ豸Æ÷µÄÊôÐÔ¡£
Linux ϵͳÆô¶¯¼ÓÔØÍø¿¨Çý¶¯»áÊä³öʶ±ðµ½µÄËùÓÐÍøÂçÊÊÅäÆ÷Ð ......

ÔÚlinuxÖа²×°ÖÐÎÄ×Ö¿â

                                                   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ