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

LinuxÏÂRamdisk¸ùÎļþÏµÍ³ÖÆ×÷¹ý³Ì½âÎö

http://www.soidc.net/articles/1215484977397/20080407/1215945405315_1.html
Ò»¡¢ÔÚÒ»¸öÒѽ¨ºÃµÄÎļþϵͳÉϽøÐÐÐÞ¸Ä
    ÉèÒѽ¨Á¢ºÃµÄÎļþϵͳѹËõÎļþΪramdisk.gz
    1¡¢½âѹ
    #cd ramdisk.gzËùÔÚĿ¼
    #gunzip ramdisk.gz
    ÔÚ½âѹºó£¬µÃµ½Îļþϵͳ¾µÏóÎļþramdisk£¬ ¸²¸ÇÁËÔ­À´µÄѹËõÎļþ
    2¡¢¾µÏóÎļþ¹ÒÔØ
    ¾µÏóÎļþ±ØÐë¾­¹ý¹ÒÔØºó²ÅÄÜ¿´µ½ÎļþϵͳÖеĸ÷¸öĿ¼ºÍÏêϸÄÚÈÝ
    #mkdir /mnt/loop /* /mnt/loop ÊÇÎļþϵͳҪ¹ÒÔØµ½µÄĿ¼
    #mount ?Co loop ramdisk /mnt/loop
    ÔÚ¹ÒÔØÄ¿Â¼/mnt/loop϶ÔÎļþϵͳ½øÐвÙ×÷
    #cd /mnt/loop
    #do_whatever_you_want_to_do /*¸ù¾ÝÐèÒªÔö¼Ó¡¢É¾¼õ»òÊÇÐÞ¸ÄÎļþϵͳµÄÄÚÈÝ
    4¡¢Ð¶×°Îļþϵͳ
    Ìøµ½/mnt/loopĿ¼Í⣬·ñÔòÎÞ·¨Ð¶×°£¬Ìáʾbusy
    #cd ramdiskËùÔÚĿ¼
    #umount /mnt/loop
    5¡¢Ñ¹ËõÎļþϵͳ
    #gzip ?Cv9 ramdisk /*Éú³Éramdisk.gzѹËõÎļþ
    ¶þ¡¢×Ô¼º½¨Á¢¸ùÎļþϵͳ
    1¡¢½¨Á¢loopÉ豸µÄÁÙʱ¹ÒÔØµã
    #mkdir /mnt/loop
    2¡¢½¨Á¢Ò»¸ö´óСΪ15MµÄÁÙʱÎļþ
    #dd if=/dev/zero of=/tmp/loop_tmp bs=1k count=15360
    ×¢Òâ¿É¸ù¾Ý×Ô¼ºµÄÐèÒª½¨Á¢´óСºÏÊʵÄÎļþϵͳ£¬¸ü¸Äcount´óС¼´¿É¡£
   
´Ë´¦ÒÔddÃüÁÁ¢Ò»¸öÁËÒ»¸ö15360KBÎļþϵͳӳÏ󣬴æÓÚ/tmp/loop/tmp£¬²¢ÒÔ¡£dev/zero¶ÔËü½øÐгõʼ»¯¡£ÓÃÕâÖÖ·½Ê½¶ÔÎļþϵ
ͳ½øÐгõʼ»¯£¬ÉÔºóµ±ÎÒÃÇʹÓÃgzipÃüÁîѹËõÕû¸öÓ³Ïóʱ£¬½«ÈÃÎļþϵͳÖÐδʹÓõIJ¿·Ö»ñµÃ×î´óѹËõ±È¡£
    3¡¢½«É豸ÎļþÓëÁÙʱÎļþÁªÏµÆðÀ´
    #losetup /dev/loop0 /tmp/loop_tmp
    °ÑÉ豸Îļþ/dev/loop0ÓëÁÙʱ¾µÏóÎļþ/tmp/loop_tmpÁªÏµÆðÀ´£¬/dev/loop0ÊǸö¿éÉ豸
    Èç¹û³öÏÖ“ioctl£ºLOOP_SET_FD£ºÉ豸»ò×ÊԴ攣¬ËµÃ÷/dev/loop0É豸»¹ºÍÒ»ÎļþÁªÏµ£¬¿ÉÓÃlosetup
/dev/loop0²é¿´µØ£¬²¢¿ÉÓÃ-d ɾ³


Ïà¹ØÎĵµ£º

ÔÚWindowsÏÂÔ¶³Ì×ÀÃæÁ¬½ÓLinux XManagerƪ

×÷Õߣº¸ßÕÅÔ¶Öõ(HiLoveS)
Ô­ÎÄ£ºhttp://www.cnblogs.com/hiloves/archive/2010/05/18/1738084.html
 
XManagerÊÇÒ»¸ö¼òµ¥Ò×ÓõĸßÐÔÄܵÄÔËÐÐÔÚWindowsƽ̨ÉϵÄX-ServerÈí¼þ£¬¶øGnomeºÍKDE¾ÍÊÇX-Client£¬LinuxϵÄX-ServerÔòΪXorg¡£ËüÄܰÑÔ¶¶ËUnix/LinuxµÄ×ÀÃæÎÞ·ìµØ´øµ½ÄãµÄWindowsÉÏ£¬ÉõÖÁµ±ÄãµÄµçÄÔÊÇÔÚÄÚÍø»ò·À ......

10¸ö×î¿áµÄLinuxµ¥ÐÐÃüÁî

ת×Ô£ºhttp://linuxtoy.org/archives/top-10-one-liners.html
ÏÂÃæÊÇÀ´×Ô Commandlinefu ÍøÕ¾ÓÉÓû§Í¶Æ±¾ö³öµÄ 10 ¸ö×î¿áµÄ Linux µ¥ÐÐÃüÁϣÍû¶ÔÄãÓÐÓá£
sudo !!
ÒÔ root ÕÊ»§Ö´ÐÐÉÏÒ»ÌõÃüÁî¡£
python -m SimpleHTTPServer
ÀûÓà Python ´î½¨Ò»¸ö¼òµ¥µÄ Web ·þÎñÆ÷£¬¿Éͨ¹ý http://$HOSTNAME:8000 ·ÃÎÊ¡£
:w !su ......

ÐÞ¸ÄLinuxÎļþ¾ä±úÏÞÖÆ

1. #vi /etc/profile£¬Ôö¼Óulimit -HSn 65536
2. #vi /etc/security/limits.conf£¬ÎªÄãµÄÓû§Ôö¼Ó
    user soft nofile 38192
    user hard nofile 65536
3. ÖØÆôShell¼´¿É
4. ulimit -a ²é¿´ÉèÖÃÊÇ·ñ³É¹¦¡£
5. ²é¿´ÏµÍ³×ÜÏÞÖÆµÄÃüÁ
   #cat /proc/sys/fs/file-max
6 ......

linux ¿ª»úÎÊÌâ

Ubuntu10.04¾µÏñ»á³öÏÖÎÞ·¨Ê¶±ð¼üÅÌÊäÈë¡£ÔڵǼ»­ÃæÊ±£¬²»ÄÜÊäÈëÃÜÂ룬ÎÞ·¨Õý³£½øÈëϵͳ¡£ ½â¾ö°ì·¨£º £¨1£© ¿ª»§ÆÁÄ»¼üÅ̹¦ÄÜ ÔÚÉÏͼ¿ª»ú½çÃæÔÚÓÒϽǵ¥»÷СÈËͼ°¸£¬ÔÙµ¥»÷“Universal Access Perferences”£¬³ö»÷“Universal Access Perferences”¶Ô»°¿ò£¬ÔÚ¶Ô»°¿òÖÐÑ¡ÖГUse on-screen keybo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ