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

linux ÖÐÐÂÔö¼ÓÓ²Å̼°À©Õ¹SWAP½»»»·ÖÇø

       ÔÚlinuxÖÐ,µ±ÎÒÃÇÒòΪÐèÒªÐÂÌí¼ÓÒ»¿éÓ²ÅÌ,»òÕßÊÇÎÒÃÇswap½»»»·ÖÇø¿Õ¼ä²»¹»,ÐèÒªÔö¼Ó,ÎÒÃÇÔõôÀ´´¦ÀíÄØ?Ê×ÏÈ,ÕÒÒ»¿éÐÂÓ²ÅÌ,ÔڶϵçµÄÇé¿öϽÓÈë,Æô¶¯¼ÆËã»ú,½Ó¾Í½øÐÐÈçϲÙ×÷:
Ò»¡¢ÐÂÔö´ÅÅÌ·ÖÇø¡¢¸ñʽ»¯
Ê×ÏÈÓÃfdisk -l ²é¿´ÐÂÔöÓ²Å̵ÄÅÌ·û£¬ÀýÈç/dev/sdb;
½«Æä·Ö³ÉÈý¸öÇø£º
#fdisk /dev/sdb
½øÈëfdiskģʽ£º
Command (m for help):p   //²é¿´ÐÂÓ²Å̵ķÖÇø   h//Ϊ°ïÖú
Command (m for help):n   //´´½¨Ð·ÖÇø
¿ÉÒÔÓÃmÃüÁîÀ´¿´fdiskÃüÁîµÄÄÚ²¿ÃüÁnÃüÁî´´½¨Ò»¸öзÖÇø£»dÃüÁîɾ³ýÒ»¸ö´æÔڵķÖÇø£»pÃüÁîÏÔʾ·ÖÇøÁÐ±í£»tÃüÁîÐ޸ķÖÇøµÄÀàÐÍIDºÅ£»lÃüÁîÏÔʾ·ÖÇøIDºÅµÄÁÐ±í£»aÃüÁîÖ¸¶¨Æô¶¯·ÖÇø£»wÃüÁîÊǽ«¶Ô·ÖÇø±íµÄÐ޸ĴæÅÌÈÃËü·¢Éú×÷Óá£
Command action
e extended //ÊäÈëeΪ´´½¨À©Õ¹·ÖÇø
p primary partition (1-4) //ÊäÈëpΪ´´½¨Ö÷·ÖÇø£¬ÕâÀïÎÒÃÇÑ¡Ôñp
Partion number(1-4)£º1   //µÚÒ»¸öÀ©Õ¹·ÖÇø£¬°´ÄãÐèÇó¿ÉÒÔ×î¶à·Ö4¸öÖ÷·ÖÇø
First Cylinder(1-1014,default 1):   1   //µÚÒ»¸öÖ÷·ÖÇøÆðʼµÄ´ÅÅÌ¿éÊý
Last cylindet or +siza or +sizeM or +sizeK: +1024MB   //¿ÉÒÔÊÇÒÔMBΪµ¥Î»µÄÊý×Ö»òÕßÒÔ´ÅÅÌ¿éÊý£¬ÕâÀïÎÒÃÇÊäÈë+1024MB±íʾ·ÖÇø´óСΪ1G¡£
ÕâÑùÎÒÃǾʹ´½¨ÍêÒ»¸ö·ÖÇø£¬Èç¹ûÒª´´½¨¸ü¶à·ÖÇø¿ÉÒÔÕÕÉÏÃæµÄ²½Öè¼ÌÐø´´½¨¡£
´´½¨ÍêºóÓÃw±£´æ·ÖÇø¡£
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
ÕâÑù¾Í·ÖÇøÍêÁË£¬ÎÒÃÇ»¹Òª½øÐиñʽ»¯
#mkfs -t ext3 -c /dev/sdb1   //Èç¹ûÓжà¸ö·ÖÇø£¬Ôò·ÖÇøÐÞ¸ÄΪsdb2ÕâÑù¸ñʽ»¯ÍêºóÎÒÃÇÐèÒª½øÐйÒÔØ·ÖÇø£¬
#mkdir www //´´½¨/wwwĿ¼£¬ÎÒÃǽ«°ÑеķÖÇø¹Òµ½wwwÏÂ
#mount /dev/sdb1 /www   //½«/dev/sdb1¹ÒÔØµ½/www
# df   //ÓÃdfÃüÁî½øÐв鿴
Filesystem           1K-blocks    Used Available Use% Mounted on
/dev/sda2              3771316 1388956 2190788   39% /
/dev/sda1             101089    9463 &nbs


Ïà¹ØÎĵµ£º

Linux½ø³Ìµ÷¶Èʱ»ú


http://www.chineselinuxuniversity.net/articles/30602.shtml
Linux½ø³Ìµ÷¶È³ÌÐòËäÈ»
ÌØ±ð
ÖØÒª
£¬µ«Ëü²»¹ýÊÇÒ»¸ö´æÔÚÓÚÄں˿ռäÖеĺ¯Êý¶øÒÑ£¬²¢²»ÉñÃØ¡£LinuxµÄµ÷¶È³ÌÐòÊÇÒ»¸ö½ÐSchedule£¨£©µÄº¯Êý£¬Õâ¸öº¯Êý±»µ÷ÓÃµÄÆµÂʺܸߣ¬ÓÉËüÀ´¾ö¶¨ÊÇ·ñ
Òª½øÐнø³ÌµÄÇл»£¬Èç¹ûÒªÇл»µÄ»°£¬Çл»µ½Äĸö½ø³ÌµÈµÈ¡£ÎÒÃÇ
ÏÈÀ´ ......

ARMǶÈëʽLINUXÉ豸Çý¶¯Éè¼ÆÈëÃÅѧϰ

  ¾­¹ýÒ»¶Îʱ¼äµÄѧϰ֮ºó£¬Ò²¿ª·¢ÁËһЩСÐ͵ÄÇý¶¯£¬ÕýÈçÎÒ֮ǰһƪÖÐдµ½µÃ£¬ÏÖÔÚÎÒ¾ÍÀ´Ð´Ò»ÏÂÔÚARMǶÈëʽLINUXÏÂÈçºÎÉè¼ÆÇý¶¯µÄ¿ò¼Ü¡£
        ÔÚÕâÀïÎÒÓõİå×ÓÊÇmicro2440°å×Ó£¬°å×ÓÉϵÄlinux°æ±¾ÊÇ2.6.13¡£ÒòΪÎÒÔÚǰһƪ½éÉÜÁËÇý¶¯±à³ÌµÄÁ½ÖÖ¿ò¼ÜÉè¼Æ£¬ËùÒÔÏÖÔÚÎÒ¾ÍÀ´·Ö±ð ......

LinuxÐźżò½é

LinuxÐźżò½é ¡¡
1) SIGHUP ±¾ÐźÅÔÚÓû§ÖÕ¶ËÁ¬½Ó(Õý³£»ò·ÇÕý³£)½áÊøÊ±·¢³ö, ͨ³£ÊÇÔÚÖն˵ĿØÖƽø³Ì½áÊøÊ±, ֪ͨͬһsessionÄڵĸ÷¸ö×÷Òµ, ÕâʱËüÃÇÓë¿ØÖÆÖն˲»ÔÙ¹ØÁª. ¡¡¡¡
2) SIGINT ³ÌÐòÖÕÖ¹(interrupt)ÐźÅ, ÔÚÓû§¼üÈëINTR×Ö·û(ͨ³£ÊÇCtrl-C)ʱ·¢³ö ¡¡¡¡
3) SIGQUIT ºÍSIGINTÀàËÆ, µ«ÓÉQUIT×Ö·û(ͨ³£ÊÇCtrl-\ ......

LINUXÆÚÄ©¸´Ï° ³ÌÐòÉè¼ÆÈëÃÅ

Ò»¡¢GCC (×î×î³£¼û:gcc    hello.c   –o    hello) ¢Ù³£ÓÃÑ¡Ïî -c:½ö¶ÔÔ´Îļþ½øÐбàÒë
-o:¶ÔÉú³ÉµÄ´úÂë½øÐÐÓÅ»¯£¬ÓÐ0£¬1£¬2£¬3ËĸöµÈ¼¶£¬Ä¬ÈÏΪ2
-g:¼ÓÈëµ÷ÊÔÐÅÏ¢
-I dir:±àÒëÔ´ÎļþÊÇÔö¼ÓÒ»¸öËÑË÷¿âÎļþµÄĿ¼
-w:½ûÖ¹ËùÓо¯¸æ
-W warning:ÔÊÐí ......

Linux 2.6.19.x Äں˱àÒëÅäÖÃÑ¡Ïî¼ò½é

°æÈ¨ÉùÃ÷
±¾ÎÄ×÷ÕßÊÇһλ×ÔÓÉÈí¼þ°®ºÃÕߣ¬ËùÒÔ±¾ÎÄËäÈ»²»ÊÇÈí¼þ£¬µ«ÊDZ¾×Å GPL µÄ¾«Éñ·¢²¼¡£ÈκÎÈ˶¼¿ÉÒÔ×ÔÓÉʹÓá¢×ªÔØ¡¢¸´ÖƺÍÔÙ·Ö·¢£¬µ«±ØÐë±£Áô×÷ÕßÊðÃû£¬Ò಻µÃ¶ÔÉùÃ÷ÖеÄÈκÎÌõ¿î×÷ÈκÎÐÎʽµÄÐ޸ģ¬Ò²²»µÃ¸½¼ÓÈÎºÎÆäËüÌõ¼þ¡£Äú¿ÉÒÔ×ÔÓÉÁ´½Ó¡¢ÏÂÔØ¡¢´«²¥´ËÎĵµ£¬µ«Ç°ÌáÊDZØÐ뱣֤ȫÎÄÍêÕû×ªÔØ£¬°üÀ¨ÍêÕûµÄ°æÈ¨ÐÅÏ¢ºÍ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ