ºìÁªLinuxÃÅ»§
Linux°ïÖú

Linuxϵͳµ÷ÓÃÁбí

·¢²¼Ê±¼ä:2009-08-27 14:35:18À´Ô´:ºìÁª×÷Õß:ɵµ°
ÒÔÏÂÊÇLinuxϵͳµ÷ÓõÄÒ»¸öÁÐ±í£¬°üº¬Á˴󲿷ֳ£ÓÃϵͳµ÷ÓúÍÓÉϵͳµ÷ÓÃÅÉÉú³öµÄµÄº¯Êý¡£Õâ¿ÉÄÜÊÇÄãÔÚ»¥ÁªÍøÉÏËùÄÜ¿´µ½µÄΨһһƪÖÐÎÄ×¢Ê͵ÄLinuxϵͳµ÷ÓÃÁÐ±í£¬¼´Ê¹ÊǼòµ¥µÄ×ÖĸÐòÓ¢ÎÄÁÐ±í£¬ÄÜ×öµ½ÕâôÍêÈ«Ò²ÊǺܺ±¼ûµÄ¡£

°´ÕÕ¹ßÀý£¬Õâ¸öÁбíÒÔman pagesµÚ2½Ú£¬¼´ÏµÍ³µ÷ÓýÚΪÀ¶±¾¡£°´ÕÕ±ÊÕßµÄÀí½â£¬¶ÔÆä×÷ÁË´óÖµķÖÀ࣬ͬʱҲ×÷ÁËһЩССµÄÐ޸ģ¬É¾È¥Á˼¸¸ö½ö¹©ÄÚºËʹÓ㬲»ÔÊÐíÓû§µ÷ÓõÄϵͳµ÷Ó㬶Ըö±ð±¾ÈËÉÔ¾õ²»Í׵ĵط½×÷ÁËһЩСµÄÐ޸ģ¬²¢¶ÔËùÓÐÁгöµÄϵͳµ÷Óø½ÉϼòҪעÊÍ¡£

ÆäÖÐÓÐһЩº¯ÊýµÄ×÷ÓÃÍêÈ«Ïàͬ£¬Ö»ÊDzÎÊý²»Í¬¡££¨¿ÉÄܺܶàÊìϤC++ÅóÓÑÂíÉϾÍÄÜÁªÏëÆðº¯ÊýÖØÔØ£¬µ«ÊDZðÍüÁËLinuxºËÐÄÊÇÓÃCÓïÑÔдµÄ£¬ËùÒÔÖ»ÄÜÈ¡³É²»Í¬µÄº¯ÊýÃû£©¡£»¹ÓÐһЩº¯ÊýÒѾ­¹ýʱ£¬±»ÐµĸüºÃµÄº¯ÊýËù´úÌæÁË£¨gccÔÚÁ´½ÓÕâЩº¯Êýʱ»á·¢³ö¾¯¸æ£©£¬µ«ÒòΪ¼æÈݵÄÔ­Òò»¹±£Áô×Å£¬ÕâЩº¯ÊýÎÒ»áÔÚÇ°Ãæ±êÉÏ¡°*¡±ºÅÒÔʾÇø±ð¡£

Ò»¡¢½ø³Ì¿ØÖÆ£º



fork ´´½¨Ò»¸öнø³Ì
clone °´Ö¸¶¨Ìõ¼þ´´½¨×Ó½ø³Ì
execve ÔËÐпÉÖ´ÐÐÎļþ
exit ÖÐÖ¹½ø³Ì
_exit Á¢¼´ÖÐÖ¹µ±Ç°½ø³Ì
getdtablesize ½ø³ÌËùÄÜ´ò¿ªµÄ×î´óÎļþÊý
getpgid »ñÈ¡Ö¸¶¨½ø³Ì×é±êʶºÅ
setpgid ÉèÖÃÖ¸¶¨½ø³Ì×é±êÖ¾ºÅ
getpgrp »ñÈ¡µ±Ç°½ø³Ì×é±êʶºÅ
setpgrp ÉèÖõ±Ç°½ø³Ì×é±êÖ¾ºÅ
getpid »ñÈ¡½ø³Ì±êʶºÅ
getppid »ñÈ¡¸¸½ø³Ì±êʶºÅ
getpriority »ñÈ¡µ÷¶ÈÓÅÏȼ¶
setpriority ÉèÖõ÷¶ÈÓÅÏȼ¶
modify_ldt ¶Áд½ø³ÌµÄ±¾µØÃèÊö±í
nanosleep ʹ½ø³Ì˯ÃßÖ¸¶¨µÄʱ¼ä
nice ¸Ä±ä·Öʱ½ø³ÌµÄÓÅÏȼ¶
pause ¹ÒÆð½ø³Ì£¬µÈ´ýÐźÅ
personality ÉèÖýø³ÌÔËÐÐÓò
prctl ¶Ô½ø³Ì½øÐÐÌض¨²Ù×÷
ptrace ½ø³Ì¸ú×Ù
sched_get_priority_max È¡µÃ¾²Ì¬ÓÅÏȼ¶µÄÉÏÏÞ
sched_get_priority_min È¡µÃ¾²Ì¬ÓÅÏȼ¶µÄÏÂÏÞ
sched_getparam È¡µÃ½ø³ÌµÄµ÷¶È²ÎÊý
sched_getscheduler È¡µÃÖ¸¶¨½ø³ÌµÄµ÷¶È²ßÂÔ
sched_rr_get_interval È¡µÃ°´RRËã·¨µ÷¶ÈµÄʵʱ½ø³ÌµÄʱ¼äƬ³¤¶È
sched_setparam ÉèÖýø³ÌµÄµ÷¶È²ÎÊý
sched_setscheduler ÉèÖÃÖ¸¶¨½ø³ÌµÄµ÷¶È²ßÂԺͲÎÊý
sched_yield ½ø³ÌÖ÷¶¯Èóö´¦ÀíÆ÷,²¢½«×Ô¼ºµÈºòµ÷¶È¶ÓÁжÓβ
vfork ´´½¨Ò»¸ö×Ó½ø³Ì£¬ÒÔ¹©Ö´ÐÐгÌÐò£¬³£ÓëexecveµÈͬʱʹÓÃ
wait µÈ´ý×Ó½ø³ÌÖÕÖ¹
wait3 ²Î¼ûwait
waitpid µÈ´ýÖ¸¶¨×Ó½ø³ÌÖÕÖ¹
wait4 ²Î¼ûwaitpid
capget »ñÈ¡½ø³ÌȨÏÞ
capset ÉèÖýø³ÌȨÏÞ
getsid »ñÈ¡»áÎî±êʶºÅ
setsid ÉèÖûáÎî±êʶºÅ
¶þ¡¢Îļþϵͳ¿ØÖÆ


1¡¢Îļþ¶Áд²Ù×÷


fcntl Îļþ¿ØÖÆ
open ´ò¿ªÎļþ
creat ´´½¨ÐÂÎļþ
close ¹Ø±ÕÎļþÃèÊö×Ö
read ¶ÁÎļþ
write дÎļþ
readv ´ÓÎļþ¶ÁÈëÊý¾Ýµ½»º³åÊý×éÖÐ
writev ½«»º³åÊý×éÀïµÄÊý¾ÝдÈëÎļþ
pread ¶ÔÎļþËæ»ú¶Á
pwrite ¶ÔÎļþËæ»úд
lseek Òƶ¯ÎļþÖ¸Õë
_llseek ÔÚ64λµØÖ·¿Õ¼äÀïÒƶ¯ÎļþÖ¸Õë
dup ¸´ÖÆÒÑ´ò¿ªµÄÎļþÃèÊö×Ö
dup2 °´Ö¸¶¨Ìõ¼þ¸´ÖÆÎļþÃèÊö×Ö
flock Îļþ¼Ó/½âËø
poll I/O¶à·ת»»
truncate ½Ø¶ÏÎļþ
ftruncate ²Î¼ûtruncate
umask ÉèÖÃÎļþȨÏÞÑÚÂë
fsync °ÑÎļþÔÚÄÚ´æÖеIJ¿·Öд»Ø´ÅÅÌ



2¡¢Îļþϵͳ²Ù×÷


access È·¶¨ÎļþµÄ¿É´æÈ¡ÐÔ
chdir ¸Ä±äµ±Ç°¹¤×÷Ŀ¼
fchdir ²Î¼ûchdir
chmod ¸Ä±äÎļþ·½Ê½
fchmod ²Î¼ûchmod
chown ¸Ä±äÎļþµÄÊôÖ÷»òÓû§×é
fchown ²Î¼ûchown
lchown ²Î¼ûchown
chroot ¸Ä±ä¸ùĿ¼
stat È¡Îļþ״̬ÐÅÏ¢
lstat ²Î¼ûstat
fstat ²Î¼ûstat
statfs È¡ÎļþϵͳÐÅÏ¢
fstatfs ²Î¼ûstatfs
readdir ¶ÁȡĿ¼Ïî
getdents ¶ÁȡĿ¼Ïî
mkdir ´´½¨Ä¿Â¼
mknod ´´½¨Ë÷Òý½Úµã
rmdir ɾ³ýĿ¼
rename Îļþ¸ÄÃû
link ´´½¨Á´½Ó
symlink ´´½¨·ûºÅÁ´½Ó
unlink ɾ³ýÁ´½Ó
readlink ¶Á·ûºÅÁ´½ÓµÄÖµ
mount °²×°Îļþϵͳ
umount жÏÂÎļþϵͳ
ustat È¡ÎļþϵͳÐÅÏ¢
utime ¸Ä±äÎļþµÄ·ÃÎÊÐÞ¸Äʱ¼ä
utimes ²Î¼ûutime
quotactl ¿ØÖÆ´ÅÅÌÅä¶î
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 8 ÌõÆÀÂÛ

  1. zhangbohtz ÓÚ 2010-02-04 18:05:12·¢±í:

    4# leiyubingxin


    Å£ÈË

  2. wwwmao ÓÚ 2010-01-21 19:28:27·¢±í:

    ѧϰÖС£¡£¡£¡£¡£¡£

  3. ffbp ÓÚ 2010-01-20 23:56:19·¢±í:

    ºÜºÃµÄ×ܽᣬºÜºÃµÄÁÐ±í¡£

  4. anabrian ÓÚ 2010-01-20 15:04:04·¢±í:

    Õâ¸öºÜÓÐÓÃ

  5. yuchao668 ÓÚ 2009-12-24 22:57:40·¢±í:

    thanks

  6. leiyubingxin ÓÚ 2009-12-24 19:13:30·¢±í:

    ºÜºÃµÄ×ܽá

  7. uchiha ÓÚ 2009-12-19 18:23:37·¢±í:

    ¼±ÐèÎл¥Ö÷

  8. js001sdx ÓÚ 2009-09-17 15:56:19·¢±í:

    ѧϰÁË£¡£¡£¡Ð»Ð»