Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

cin EOF Linux

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

linuxÎÞÁ¬½Ó»ñÈ¡²»µ½IP

  ½ñÌìÔÚVMÖа²×°REDHat9Ö®ºó£¬ÔÚÖÕ¶ËÖÐÖ´ÐÐifconfigÖ¸Áî·¢ÏÖ²»ÄÜ»ñÈ¡²»µ½IP£¬Ö´ÐÐsetupÃüÁÐÞ¸ÄIP»ñÈ¡·½Ê½Îª¶¯Ì¬»ñÈ¡ºó»¹ÊÇ»ñÈ¡²»µ½£¬Ö´ÐÐsetup eth0 ÏÔʾ“ÎÞÁ¬½Ó¡£¡£¡£”ÉÏÍø²éÕÒÔ­ÒòºÜ¶àÈ˶¼ËµÊÇÇý¶¯Ã»°²×°¡¢Íø¿¨Ã»°²×°µÈ£¬×îºó·¢ÏÖ¶¼Êdz¶µ­¡£ÕæÕýµÄÔ­ÒòÊÇδ°²×°VMware Tools¡£°²×°VMtools·½Ê½
1 µã» ......

Linux DNS´î½¨ÊÔÑéºÍÏêϸ¹ý³Ì

¹Ù·½ÍøÕ¾£ºhttp://www.isc.org
Ò»£ºÔ´Âë°üµÄ°²×°ºÍÅäÖÃ
ÏÂÔØÔ´Âë°üÎļþ£ºhttp://ftp.isc.org/isc/bind9/9.4.2/bind-9.4.2.tar.gz
½âѹ²¢°²×°bind
Tar –zxvf bind-9.4.2.tar.gz
ÅäÖÃÔ´Âë°ü£º
./configure --prefix=/usr/local/named --enable-threads  #--enable-threads¿ªÆô¶àÏ̴߳¦ÀíÄÜÁ¦ 
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ