linuxϵͳµ÷Óã¨×ª£©
ÆäÖÐÓÐһЩº¯ÊýµÄ×÷ÓÃÍêÈ«Ïàͬ£¬Ö»Ê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
Ïà¹ØÎĵµ£º
×î½üѧϰÁËÔÚlinuxϲ¿ÊðÏîÄ¿£¬Ð´Ð´Ðĵá£
1.°²×°ÐéÄâ»úºó£¬ÅäºÃÍøÂ磬ÇŽÓ×îÈÝÒ×Å䣬ֱ½ÓÔÚlinuxÏÂʹÓÃͬһ¸öÍø¶ÎµÄÈÎÒâipµØÖ·¼´¿É¡£Ë³±ã°ÑvmµÄ¼¸¸öÍøÂçµÄ·þÎñ¸øÍ£ÁË¡£
2.ºÜÖØÒªµÄÒ»µã£¬°ÑlinuxµÄ°²È«ÅäÖÃÉèÖúᣲ¢¿ªÆôsshd·þÎñ
3.ÏÂÔØwindowsÖÐÐèÒªÁ½¸ö¹¤¾ß£ºputtyfile_0.60cn.zip winscp403setupintl.exe
Ç°ÕßΪԶ³ ......
ѧϰlinuxϵÄc/c++±à³Ì
1£¬ÏÈÓÐlinux»·¾³
´îminGWºÍcygwin¶¼ÓеãÂé·³£¬×î×î¼òµ¥µÄ°ì·¨»¹ÊÇ×°¸öÕæÕýµÄlinux£¬ÓÃÐéÄâ»úÒ²ºÃ£¬ÔÚÍøÂçÉϵÄÁíһ̨»úÆ÷Ò²ºÃ¡£ÕâÑù²»½ö¿ì£¬¶øÇÒÄãÓÐÁËÕæÕýµÄ»·¾³¡£
2.»áC/C++ÓïÑÔ£¨¹À¼ÆÄã»áµÄ£©
3.ÈëÃŽ׶ÎÊìϤgccÃüÁîÐУ¬×î»ù±¾µÄ²ÎÊý£¬È磬-g,-W,-O,-o,-c ½¨Òé¿´man gcc(ºÜ´óÕÒÏ ......
ÐźŻù±¾ÔÀí
LinuxÊÇÒ»ÖÖ¶àÓû§¶àÈÎÎñµÄ²Ù×÷ϵͳ£¬ÏµÍ³ÄÚ»áÓжà¸ö½ø³Ì´æÔÚ¡£ÎÞÂÛÊDzÙ×÷ϵͳÓëÓû§½ø³ÌÖ®¼ä£¬»¹ÊÇÓû§½ø³ÌÖ®¼ä£¬¾³£ÐèÒª¹²ÏíÊý¾ÝºÍ½»»»ÐÅÏ¢¡£½ø³Ì
¼äÏ໥ͨÐŵķ½·¨ÓжàÖÖ£¬ÐźűãÊÇÆäÖÐ×îΪ¼òµ¥µÄÒ»ÖÖ£¬ËüÓÃÒÔÖ¸³öijʼþµÄ·¢Éú¡£ÔÚLinuxϵͳÖУ¬¸ù¾Ý¾ßÌåµÄµÄÈíÓ²¼þÇé¿ö£¬Äں˳ÌÐò»á·¢³ö²»Í¬µÄÐźÅ
......
ÔËÐÐÈçÏÂÃüÁ¿É¿´µ½LinuxÖ§³ÖµÄÐźÅÁÐ±í£º
$ kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE
9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD
18) S ......