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

linuxʹÓÃÐÂÓ²ÅÌ


linuxϰ²×°ÐÂÓ²Å̲¢¼ÓÔØÊ¹ÓÃÊÖ¼Ç
================================================================================
Ò»¡¢¹ý³Ì²½Öè
1¡¢#kudzu                          //¼ì²âÐÂÓ²¼þ£¬ÕâÒ»²½±ØÐ룡
2¡¢#fdisk -l                         //²é¿´ÊÇ·ñÕÒµ½ÐµÄÓ²ÅÌ£¬²é¿´Ó²ÅÌ´úºÅ¡£
3¡¢#fdisk /dev/sdb             //ΪÐÂÓ²ÅÌ·ÖÇø£¬ÀýÈç·Ö³Ésdb1
     #mkfs.ext3 /dev/sdb1    //°ÑÐÂÓ²Å̸ñʽ»¯³Éext3¸ñʽ
4¡¢#mkdir /disk2                    //´´½¨ÐµĹÒÔØµã
5¡¢#mount /dev/sdb1 /disk2/   //ÊÖ¶¯¹ÒÔØ·ÖÇø,°ÑÓ²Å̹ҵ½/disk2Ŀ¼Ï¡£
6¡¢#vi /etc/fstab
/dev/sdb1 /disk2 ext3 auto 1 2     //ÉèÖÃΪ¿ª»ú×Ô¶¯¹ÒÔØ·ÖÇø¡£
¶þ¡¢¿ª¹¤
2¡¢
²é¿´Ó²ÅÌ´úºÅ
[root@AMD-LINUX ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×0007d856
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1305 10281600 8e Linux LVM
Disk /dev/sdb: 2147 MB, 2147483648 bytes <=ÐÂÓ²ÅÌ
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000
Disk /dev/sdb doesn’t contain a valid partition table
Disk /dev/dm-0: 9395 MB, 9395240960 bytes
255 heads, 63 sectors/track, 1142 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000
Disk /dev/dm-0 doesn’t contain a valid partition table
Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065


Ïà¹ØÎĵµ£º

linuxµ÷Õûϵͳʱ¼äºÍÊ±ÇøµÄ·½·¨


linuxµ÷Õûϵͳʱ¼äºÍÊ±ÇøµÄ·½·¨
1) ÕÒµ½ÏàÓ¦µÄÊ±ÇøÎļþ /usr/share/zoneinfo/Asia/Shanghai
ÓÃÕâ¸öÎļþÌæ»»µ±Ç°µÄ/etc/localtimeÎļþ¡£
2) ÐÞ¸Ä/etc/sysconfig/clockÎļþ£¬ÐÞ¸ÄΪ£º
ZONE="Asia/Shanghai"
UTC=false
ARC=false
3)
ʱ¼äÉ趨³É2005Äê8ÔÂ30ÈÕµÄÃüÁîÈçÏ£º
#date -s 08/30/2005
½«ÏµÍ³Ê±¼äÉ趨³ÉÏÂÎ ......

LinusΪʲô²»ÓÃC++дLinuxÄںˣ¿

ÔÚ×î½üµÄÒ»¸ö¹ØÓÚ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ÏÂÇý¶¯µÄÈë¿Úº¯Êý¼°¼ÓÔØ

      ¼¸ºõÿ¸ölinuxÇý¶¯¶¼Óиömodule_init¡£Ã»´í£¬Çý¶¯µÄ¼ÓÔØ¾Í¿¿Ëü¡£ÏÈÀ´·ÖÎöÒ»ÏÂmodule_init¡£¶¨ÒåÈçÏ£º
#define module_init(x)     __initcall(x);              //include\linux\init.h
#define ......

ÔÚLinux C±à³ÌÖÐʹÓÃUnicodeºÍUTF 8

Ŀǰ¸÷ÖÖLinux·¢Ðа涼֧³ÖUTF-8±àÂ룬µ±Ç°ÏµÍ³µÄÓïÑÔºÍ×Ö·û±àÂëÉèÖñ£´æÔÚһЩ»·¾³±äÁ¿ÖУ¬¿ÉÒÔͨ¹ýlocaleÃüÁî²é¿´£º
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPE ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ