linuxºÍunixϳ£ÓýâѹºÍѹËõÃüÁî
.tar
½â°ü£º tar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
---------------------------------------------
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar.gz
½âѹ£ºtar zxvf FileName.tar.gz
ѹËõ£ºtar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
½âѹ1£ºbzip2 -d FileName.bz2
½âѹ2£ºbunzip2 FileName.bz2
ѹËõ£º bzip2 -z FileName
.tar.bz2
½âѹ£ºtar jxvf FileName.tar.bz2
ѹËõ£ºtar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
½âѹ1£ºbzip2 -d FileName.bz
½âѹ2£ºbunzip2 FileName.bz
ѹËõ£ºÎ´Öª
.tar.bz
½âѹ£ºtar jxvf FileName.tar.bz
ѹËõ£ºÎ´Öª
---------------------------------------------
.Z
½âѹ£ºuncompress FileName.Z
ѹËõ£ºcompress FileName
.tar.Z
½âѹ£ºtar Zxvf FileName.tar.Z
ѹËõ£ºtar Zcvf FileName.tar.Z DirName
---------------------------------------------
.tgz
½âѹ£ºtar zxvf FileName.tgz
ѹËõ£ºÎ´Öª
.tar.tgz
½âѹ£ºtar zxvf FileName.tar.tgz
ѹËõ£ºtar zcvf FileName.tar.tgz FileName
---------------------------------------------
.zip
½âѹ£ºunzip FileName.zip
ѹËõ£ºzip FileName.zip DirName
---------------------------------------------
.rar
½âѹ£ºrar a FileName.rar
ѹËõ£ºr ar e FileName.rar
rarÇëµ½£ºhttp://www.rarsoft.com/download.htm ÏÂÔØ£¡
½âѹºóÇ뽫rar_static¿½±´µ½/usr/binĿ¼£¨ÆäËûÓÉ$PATH»·¾³±äÁ¿Ö¸¶¨µÄĿ¼Ҳ¿ÉÒÔ£©£º
[root@www2 tmp]# cp rar_static /usr/bin/rar
---------------------------------------------
.lha
½âѹ£ºlha -e FileName.lha
ѹËõ£ºlha -a FileName.lha FileName
lhaÇëµ½£ºhttp://www.infor.kanazawa-it.ac.jp/.../lhaunix/ÏÂÔØ£¡
>½âѹºóÇ뽫lha¿½±´µ½/usr/binĿ¼£¨ÆäËûÓÉ$PATH»·¾³±äÁ¿Ö¸¶¨µÄĿ¼Ҳ¿ÉÒÔ£©£º
[root@www2 tmp]# cp lha /usr/bin/
---------------------------------------------
.rpm
½â°ü£ºrpm2cpio FileName.rpm | cpio -div
---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh
.lzx .
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
Linux ϵͳ´¦ÓÚÕý³£×´Ì¬Ê±£¬·þÎñÆ÷Ö÷»ú¿ª»ú£¨»òÖØÐÂÆô¶¯£©ºó£¬Äܹ»ÓÉϵͳÒýµ¼Æ÷³ÌÐò×Ô¶¯Òýµ¼ Linux ϵͳÆô¶¯µ½¶àÓû§Ä£Ê½£¬²¢ÌṩÕý³£µÄÍøÂç·þÎñ¡£Èç¹ûϵͳ¹ÜÀíÔ±ÐèÒª½øÐÐϵͳά»¤»òϵͳ³öÏÖÆô¶¯Ò쳣ʱ£¬¾ÍÐèÒª½øÈëµ¥Óû§Ä£Ê½»òÐÞ¸´Ä£Ê½¶Ôϵͳ½øÐйÜÀíÁË¡£Ê¹Óõ¥Óû§Ä£Ê½ÓÐÒ»¸öÇ°Ìᣬ¾ÍÊÇÄúµÄϵͳÒýµ¼Æ÷£¨grub£©ÄÜÕý³£¹¤×÷£ ......
ÔÚ×î½üµÄÒ»¸ö¹ØÓÚLKMLµÄÌÖÂÛÖУ¬Linus¸ø³öÁËΪʲô²»ÓÃC++À´Ð´LinuxÄں˵ÄÀíÓÉ£º
"In fact, in Linux we did try C++ once already, back in 1992. It sucks. Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA.
“ÊÂʵÉÏ£¬ÎÒÃÇÔø¾³¢ÊÔ¹ýÓÃC++À´Ð´£¬ÊÇÔÚ1992ÄêµÄʱºò¡£ºÜÔã¸â¡£ÏàÐÅÎÒ--ÓÃC++À´Ð´ÄÚºË ......
¼¸ºõÿ¸ölinuxÇý¶¯¶¼Óиömodule_init¡£Ã»´í£¬Çý¶¯µÄ¼ÓÔؾͿ¿Ëü¡£ÏÈÀ´·ÖÎöÒ»ÏÂmodule_init¡£¶¨ÒåÈçÏ£º
#define module_init(x) __initcall(x); //include\linux\init.h
#define ......