Linux TarÃüÁîµÄÏêϸÓ÷¨
tarÃüÁî
tar ÎļþÊǼ¸¸öÎļþºÍ£¨»ò£©Ä¿Â¼ÔÚÒ»¸öÎļþÖеļ¯ºÏ¡£ÕâÊÇ´´½¨±¸·ÝºÍ¹éµµµÄ¼Ñ¾¶¡£
tar ʹÓõÄÑ¡ÏîÓУº
-c — ´´½¨Ò»¸öй鵵¡£
-f — µ±Óë -c Ñ¡ÏîÒ»ÆðʹÓÃʱ£¬´´½¨µÄ tar ÎļþʹÓøÃÑ¡ÏîÖ¸¶¨µÄÎļþÃû£»µ±Óë -x Ñ¡Ïî
Ò»ÆðʹÓÃʱ£¬Ôò½â³ý¸ÃÑ¡ÏîÖ¸¶¨µÄ¹éµµ¡£
-t — ÏÔʾ°üÀ¨ÔÚ tar ÎļþÖеÄÎļþÁÐ±í¡£
-v — ÏÔʾÎļþµÄ¹éµµ½ø¶È¡£
-x — ´Ó¹éµµÖгéÈ¡Îļþ¡£
-z — ʹÓà gzip À´Ñ¹Ëõ tar Îļþ¡£
-j — ʹÓà bzip2 À´Ñ¹Ëõ tar Îļþ¡£
Òª´´½¨Ò»¸ö tar Îļþ£¬¼üÈ룺
tar -cvf filename.tar directory/file
¿ÉÒÔʹÓà tar ÃüÁîͬʱ´¦Àí¶à¸öÎļþºÍĿ¼£¬·½·¨Êǽ«ËüÃÇÖðÒ»Áгö£¬²¢Óÿոñ¼ä¸ô£º
tar -cvf filename.tar /home/mine/work /home/mine/school
ÉÏÃæµÄÃüÁî°Ñ /home/mine Ŀ¼Ï嵀 work ºÍ school ×ÓĿ¼ÄÚµÄËùÓÐÎļþ¶¼·ÅÈ뵱ǰ
Ŀ¼ÖÐÒ»¸ö½Ð×ö filename.tar µÄÐÂÎļþÀï¡£
ÒªÁгö tar ÎļþµÄÄÚÈÝ£¬¼üÈ룺
tar -tvf filename.tar
Òª³éÈ¡ tar ÎļþµÄÄÚÈÝ£¬¼üÈë
tar -xvf filename.tar
Õâ¸öÃüÁî²»»áɾ³ý tar Îļþ£¬µ«ÊÇËü»á°Ñ±»½â³ý¹éµµµÄÄÚÈÝ
¸´ÖƵ½µ±Ç°µÄ¹¤×÷Ŀ¼Ï£¬²¢±£Áô¹éµµÎļþËùʹÓõÄÈκÎ
Ŀ¼½á¹¹¡£Æ©È磬Èç¹ûÕâ¸ö tar ÎļþÖаüº¬Ò»¸ö½Ð×ö
bar.txt µÄÎļþ£¬¶øÕâ¸öÎļþ°üº¬ÔÚ foo/ Ŀ¼ÖУ¬ÄÇô£¬
³éÈ¡¹éµµÎļþ½«»áµ¼ÖÂÔÚÄ㵱ǰµÄ¹¤×÷Ŀ¼Öд´½¨
foo/ Ŀ¼£¬¸ÃĿ¼Öаüº¬ bar.txt Îļþ
tar ĬÈϲ»Ñ¹ËõÎļþ¡£
Òª´´½¨Ò»¸öʹÓà tar ºÍ bzip À´¹éµµÑ¹ËõµÄÎļþ£¬Ê¹Óà -j Ñ¡Ï
tar -cjvf filename.tbz file
ÒÔÉÏÃüÁî´´½¨ÁËÒ»¸ö¹éµµÎļþ£¬È»ºó½«ÆäѹËõΪ filename.tbz Îļþ¡£Èç¹ûÄãʹÓà bunzip2 ÃüÁîΪ filename.tbz Îļþ½âѹ£¬filename.tbz Îļþ»á±»É¾³ý£¬¼ÌÖ®ÒÔ filename.tar Îļþ¡£
Ä㻹¿ÉÒÔÓÃÒ»¸öÃüÁîÀ´À©Õ¹²¢½â³ý¹éµµ bzip tar Îļþ£º
tar -xjvf filename.tbz
Òª´´½¨Ò»¸öÓà tar ºÍ gzip ¹éµµ²¢Ñ¹ËõµÄÎļþ£¬Ê¹Óà -z Ñ¡Ï
tar -czvf filename.tgz file
Õâ¸öÃüÁî´´½¨¹éµµÎļþ filename.tar£¬È»ºó°ÑËüѹËõΪ filename.tgz Îļþ£¨Îļþ filename.tar ²»±»±£Áô£©¡£
Èç¹ûÄãʹÓà gunzip ÃüÁîÀ´¸ø filename.tgz Îļþ½âѹ£¬filename.tgz Îļþ»á±»É¾³ý£¬²¢±»
Ì滻Ϊ filename.tar¡£
Äã¿ÉÒÔÓõ¥¸öÃüÁîÀ´À©Õ¹ gzip tar Îļþ£º
tar -xzvf filename.tgz
Ïà¹ØÎĵµ£º
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢ÐÐ°æ± ......
Ò»£® °²×°Sendmail¡£
ÍêÈ«°²×°Red Hat Linux
9.0ʱ£¬Sendmail¾Í»á×Ô¶¯ÄÚÖ㬰汾ºÅΪ8.12.8-4¡£Èç¹ûÄ㲻ȷ¶¨LinuxÊÇ·ñÒѾ°²×°ÓÐsendmail£¬¿ÉÒÔÊäÈëÒÔÏÂÃüÁî²é¿´£º
[root@ahpeng root] rpm –qa grep sendmail
Èç¹ûÈ·¶¨Ã»Óа²×°£¬ÇëÔÚÍ ......
ÎÒÓõÄJava°æ±¾Îª1.4£¬ÓÃ1.5µÄʱºò˵ÊÇÓв»°²È«µÄ²Ù×÷£¬ÎÞ·¨±àÒë¡¢ÔËÐС£
ÏÂÔØ×îа汾£¬BRITE.tar.gz
$ gunzip BRITE.tar.gz
$ tar xvf BRITE.tar
$ cd BRITE/
$ make all
±àÒëÍê³É£¬ÔËÐÐBRITE
$ ./brite &
Ö÷ÒªµÄÎÊÌâ ......
Linux JDK and ANT install
linux JDKµÄ°²×°
°²×°JDK
´ÓsunÍøÕ¾ÉÏÖ±½ÓÏÂÔØJDK£ºhttp:
//java.sun.com/j2se/1.4.2
/download.htmlÌṩÁËÁ½¸öÏÂÔØ£º
1¡¢RPM in self-extracting file
(j2sdk-1_4_2_04-linux-i586.bin,
32.77 MB) Õâ¸öÊÇ×Ô½âѹµÄÎļþ£¬ÔÚlinuxÉÏ°²×°ÈçÏ£º
chmod u+x
./j2sdk-1_4_2_04-l ......