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

LinuxÏÂtarÃüÁîʵÓòÎÊý¼ò½â

tar
-c: ½¨Á¢Ñ¹Ëõµµ°¸
-x£º½âѹ
-t£º²é¿´ÄÚÈÝ
-r£ºÏòѹËõ¹éµµÎļþĩβ׷¼ÓÎļþ
-u£º¸üÐÂԭѹËõ°üÖеÄÎļþ
ÕâÎå¸öÊǶÀÁ¢µÄÃüÁѹËõ½âѹ¶¼ÒªÓõ½ÆäÖÐÒ»¸ö£¬¿ÉÒԺͱðµÄÃüÁîÁ¬Óõ«Ö»ÄÜÓÃÆäÖÐÒ»¸ö¡£ÏÂÃæµÄ²ÎÊýÊǸù¾ÝÐèÒªÔÚѹËõ»ò½âѹµµ°¸Ê±¿ÉÑ¡µÄ¡£
-z£ºÓÐgzipÊôÐÔµÄ
-j£ºÓÐbz2ÊôÐÔµÄ
-Z£ºÓÐcompressÊôÐÔµÄ
-v£ºÏÔʾËùÓйý³Ì
-O£º½«Îļþ½â¿ªµ½±ê×¼Êä³ö
ÏÂÃæµÄ²ÎÊý-fÊDZØÐëµÄ
-f: ʹÓõµ°¸Ãû×Ö£¬Çмǣ¬Õâ¸ö²ÎÊýÊÇ×îºóÒ»¸ö²ÎÊý£¬ºóÃæÖ»Äܽӵµ°¸Ãû¡£
# tar -cf all.tar *.jpg
ÕâÌõÃüÁîÊǽ«ËùÓÐ.jpgµÄÎļþ´ò³ÉÒ»¸öÃûΪall.tarµÄ°ü¡£-cÊDZíʾ²úÉúеİü£¬-fÖ¸¶¨°üµÄÎļþÃû¡£
# tar -rf all.tar *.gif
ÕâÌõÃüÁîÊǽ«ËùÓÐ.gifµÄÎļþÔö¼Óµ½all.tarµÄ°üÀïÃæÈ¥¡£-rÊDZíʾÔö¼ÓÎļþµÄÒâ˼¡£
# tar -uf all.tar logo.gif
ÕâÌõÃüÁîÊǸüÐÂÔ­À´tar°üall.tarÖÐlogo.gifÎļþ£¬-uÊDZíʾ¸üÐÂÎļþµÄÒâ˼¡£
# tar -tf all.tar
ÕâÌõÃüÁîÊÇÁгöall.tar°üÖÐËùÓÐÎļþ£¬-tÊÇÁгöÎļþµÄÒâ˼
# tar -xf all.tar
ÕâÌõÃüÁîÊǽâ³öall.tar°üÖÐËùÓÐÎļþ£¬-tÊǽ⿪µÄÒâ˼
ѹËõ
tar –cvf all.tar  *.jpg
//½«Ä¿Â¼ÀïËùÓÐjpgÎļþ´ò°ü³É all.tar
tar –czf all.tar.gz  *.jpg
//½«Ä¿Â¼ÀïËùÓÐjpgÎļþ´ò°ü³Éall.tarºó£¬²¢ÇÒ½«ÆäÓÃgzipѹËõ£¬Éú³ÉÒ»¸ögzipѹËõ¹ýµÄ°ü£¬ÃüÃûΪall.tar.gz
tar –cjf all.tar.bz2 *.jpg
//½«Ä¿Â¼ÀïËùÓÐjpgÎļþ´ò°ü³Éall.tarºó£¬²¢ÇÒ½«ÆäÓÃbzip2ѹËõ£¬Éú³ÉÒ»¸öbzip2ѹËõ¹ýµÄ°ü£¬ÃüÃûΪall.tar.bz2
tar –cZf all.tar.Z *.jpg
//½«Ä¿Â¼ÀïËùÓÐjpgÎļþ´ò°ü³É all.tarºó£¬²¢ÇÒ½«ÆäÓÃcompressѹËõ£¬Éú³ÉÒ»¸öumcompressѹËõ¹ýµÄ°ü£¬ÃüÃûΪall.tar.Z
rar a all.rar *.jpg  //rar¸ñʽµÄѹËõ£¬ÐèÒªÏÈÏÂÔØrar for linux
zip all.zip *.jpg    //zip¸ñʽµÄѹËõ£¬ÐèÒªÏÈÏÂÔØzip for linux
½âѹ
tar –xvf file.tar    //½âѹ tar°ü
tar -xzvf file.tar.gz      //½âѹtar.gz
tar -xjvf file.tar.bz2      //½âѹ tar.bz2
tar –xZvf file.tar.Z      //½âѹtar.Z
unrar e file.rar     //½âѹrar
unzip file.zip      //½âѹzip
×ܽá
1¡¢*.tar Óà tar –xvf ½âѹ
2¡¢*.gz Óà gzip -d»òÕßgunzip ½âѹ
3¡¢*.tar.gzºÍ*.tgz ÓÃ


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃ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ϲ鿴Ӳ¼þÐÅÏ¢

¼¸¸öcpu
more /proc/cpuinfo |grep "physical id"|uniq|wc -l
ÿ¸öcpuÊǼ¸ºË£¨¼ÙÉècpuÅäÖÃÏàͬ£©
more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l
cpuʹÓÃÂÊ
vmstat  
ÍƼöС¹¤¾ßnmon£¨aixºÍlinux¶¼ÓУ©
topºó°´Êý×Ö1,¶à¸öcpuµÄ»°»áÏÔʾ¶à¸ö
fdisk -l¿ÉÒÔ¿´µ½¶à¸öÎïÀíÓ²ÅÌ£¬×öÁËÓ²raidÖ»ÄÜ¿´µ½Ò»¸öӲŠ......

LinuxϵͳSudoÃüÁîµÄʹÓÃ˵Ã÷

“Sudo” ÊÇUnix/Linuxƽ̨ÉϵÄÒ»¸ö·Ç³£ÓÐÓõŤ¾ß£¬ËüÔÊÐíϵͳ¹ÜÀíÔ±·ÖÅä¸øÆÕͨÓû§Ò»Ð©ºÏÀíµÄ“ȨÀû”£¬ÈÃËûÃÇÖ´ÐÐһЩֻÓг¬¼¶Óû§»òÆäËûÌØÐíÓû§²ÅÄÜÍê³ÉµÄÈÎÎñ£¬±ÈÈ磺ÔËÐÐһЩÏñmount£¬halt£¬suÖ®ÀàµÄÃüÁ»òÕ߱༭һЩϵͳÅäÖÃÎļþ£¬Ïñ/etc/mtab£¬ /etc/samba/smb.confµÈ¡£ÕâÑùÒÔÀ´£ ......

LinuxÏ°²×°SVN·þÎñÆ÷

°²×°»·¾³
CentOS 4.3 Final
Èí¼þÁбí
httpd-2.0.61.tar.gz
db-4.3.29.tar.gz
subversion-1.3.2.tar.gz
Èí¼þλÖÃ
/data/software
°²×°²½Öè
#mkdir /data/software/pkg
-p
°²×°Berkeley DB
#cd
/data/software/pkg
#tar zxvf ../db-4.3.29.tar.gz
#cd
db-4.3.29/docs
#../dist/configure
#make &&am ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ