linux¹ÒÔØÐÂÓ²ÅÌ
fdisk -l ÃüÁî¿´µ±Ç°´ÅÅÌÐÅÏ¢
[root@roswell root]# fdisk /dev/sdb
Command (m for help): m --´òÓ¡¸ÃÃüÁîµÄ²ÎÊý¹¦ÄÜÁбí
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
Command (m for help): p --´òÓ¡´ý·ÖÇøµÄ´ÅÅÌÐÅÏ¢
Disk /dev/sdb: 50.0 GB, 50019202560 bytes
255 heads, 63 sectors/track, 6081 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help):
Command (m for help): n --½øÐдÅÅÌ·ÖÇø
Command action
e extended
p primary partition (1-4)
p --e£ºÂß¼·ÖÇø p£ºÖ÷·ÖÇø£¬4¸öÖ÷·ÖÇø
Partition number (1-4): 1 --»®·ÖΪµÚÒ»¸öÖ÷·ÖÇø
First cylinder (1-6081, default 1): 1 --Æðʼ´ÅÅÌÊý£¬²»ÌîĬÈÏΪ1
Last cylinder or +size or +sizeM or +sizeK (1-6081, default 6081): 6081 --¶¨Òå¸Ã·ÖÇø´óС£¬²»ÌîĬÈÏΪȫ²¿¿ÉÓô洢¶î
Command (m for help):
Command (m for help): p --´òÓ¡´ý·ÖÇøµÄ´ÅÅÌÐÅÏ¢
Disk /dev/sdb: 50.0 GB, 50019202560 bytes
255 heads, 63 sectors/trac
Ïà¹ØÎĵµ£º
´´½¨Ð½ø³Ì£ºforkº¯Êý
1.1.1. forkº¯Êý¸Éʲô£¿
#include <sys/types.h>
#include <unistd.h>
pid_t fork(void);
‘fork()’º¯ÊýÓÃÓÚ´ÓÒÑ´æÔÚ½ø³ÌÖд´½¨Ò»¸öнø³Ì¡£Ð½ø³Ì³ÆÎª×Ó½ ......
Ò»¡¢ÉèÖÃGNOME»òÕßKDEΪĬÈÏµÄÆô¶¯×ÀÃæ»·¾³
¡¡¡¡·½·¨1£ºÐÞ¸Ä/etc/sysconfig/desktop£¬¸ù¾ÝÐèÒª½«“DESKTOP”ºóÃæµÄÄÚÈݸÄΪKDE»òGNOME¡£
¡¡¡¡·½·¨2£ºÔÚµ±Ç°Óû§Ä¿Â¼Ï½¨Á¢“.xinitrc”Õâ¸öÎļþ(×¢ÒâÎļþÃûǰÓÐÒ»¸öµãºÅ£¬´ú±í½¨Á¢µÄÊÇÒ»¸öÒþ²ØÎļþ)£¬ÎļþµÄÄÚÈݾÍÒ»ÐÐstartkde»ògnome-session£¬¸ù¾Ý ......
¸ÅÊö
1. “/etc/profile”Îļþ
2. “bdflush”²ÎÊý
3. “ip_local_port_range”²ÎÊý
4. “/etc/nsswitch.conf”Îļþ
5. “/proc”Îļþϵͳ
6. “ulimit”²ÎÊý
7. Ôö¼Óϵͳ´ò¿ªµÄÎļþÊýÄ¿
8. Îļþ“atime”ÊôÐÔ
9. ÎļþµÄ“noatime&rd ......
linuxÉ豸Çý¶¯µÄѧϰÊÇÒ»ÏîºÆ´óµÄ¹¤³Ì,¶ÁÕßÐèÒªÊ×ÏÈÕÆÎÕÒÔÏ»ù´¡:
1.Á¼ºÃµÄÓ²¼þ»ù´¡,¶®µÃSRAM,FLASH,SDRAM,Ó²Å̵ĶÁд·½Ê½,UART,I2C,USBµÈÉ豸½Ó ¿Ú,ÂÖѯ,ÖжÏ,DMAµÄÔÀí,PCI×ÜÏߵŤ×÷·½Ê½ÒÔ¼°CPUµÄÄÚ´æ¹ÜÀíµ¥Ôª(MMU)µÈ.
2.Á¼ºÃµÄCÓïÑÔ»ù´¡,ÄÜÁé»îµØÔ ......
ÏȲο´Ò»ÏÂĿ¼ÏµÄREADMEÎĵµ
Ö÷ÒªÓÐÒÔϼ¸¸ö²½Ö裺
1) perl **.PL Éú³Émakefile Îļþ
2) make
3) make test (this is optional£¬Èç¹ûÕⲽûɶÎÊÌâ,»áÏÔʾһÇÐok)
4) make install
³öÏÖµÄÎÊÌ⣬¶à¿´ÏÂÌáʾ£¬Ò»°ã¶¼ÊÇȱ°üÉÙ¿â ......