linuxÏÂÐźŴ¦Àí
Ç°ÑÔ£ºÕâÒ»ÕÂÎÒÃÇÌÖÂÛÒ»ÏÂLinuxϵÄÐźŴ¦Àíº¯Êý¡£
LinuxϵÄÐźŴ¦Àíº¯Êý£º
ÐźŵIJúÉú
ÐźŵĴ¦Àí
ÆäËüÐźź¯Êý
Ò»¸öʵÀý
1.ÐźŵIJúÉú
LinuxϵÄÐźſÉÒÔÀà±ÈÓÚDOSϵÄINT»òÕßÊÇWindowsϵÄʼþ¡£ÔÚÓÐÒ»¸öÐźŷ¢ÉúʱºòÏàÐŵÄÐźžͻᷢË͸øÏàÓ¦µÄ½ø³Ì¡£ÔÚ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) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
30) SIGPWR
¹ØÓÚÕâЩÐźŵÄÏêϸ½âÊÍÇë²é¿´man 7 signalµÄÊä³ö½á¹û¡£ ÐźÅʼþµÄ·¢ÉúÓÐÁ½¸öÀ´Ô´£ºÒ»¸öÊÇÓ²¼þµÄÔÒò(±ÈÈçÎÒÃÇ°´ÏÂÁ˼üÅÌ)£¬Ò»¸öÊÇÈí¼þµÄÔÒò(±ÈÈçÎÒÃÇʹÓÃϵͳº¯Êý»òÕßÊÇÃüÁî·¢³öÐźÅ)¡£ ×î³£ÓõÄËĸö·¢³öÐźŵÄϵͳº¯ÊýÊÇkill£¬ raise£¬ alarmºÍsetitimerº¯Êý¡£ setitimerº¯ÊýÎÒÃÇÔÚ¼ÆʱÆ÷µÄʹÓà ÄÇÒ»ÕÂÔÙѧϰ¡£
#include
#include
#include
int kill(pid_t pid£¬int sig)£»
int raise(int sig)£»
unisigned int alarm(unsigned int seconds)£»
killϵͳµ÷ÓøºÔðÏò½ø³Ì·¢ËÍÐźÅsig¡£
Èç¹ûpidÊÇÕýÊý£¬ÄÇôÏòÐźÅsig±»·¢Ë͵½½ø³Ìpid¡£
Èç¹ûpidµÈÓÚ0£¬ÄÇôÐźÅsig±»·¢Ë͵½ËùÒÔºÍpid½ø³ÌÔÚͬһ¸ö½ø³Ì×éµÄ½ø³Ì
Èç¹ûpidµÈÓÚ-1£¬ÄÇôÐźŷ¢¸øËùÓеĽø³Ì±íÖеĽø³Ì£¬³ýÁË×î´óµÄÄĸö½ø³ÌºÅ¡£
Èç¹ûpidÓÉÓÚ-1£¬ºÍ0Ò»Ñù£¬Ö»ÊÇ·¢Ëͽø³Ì×éÊÇ-pid¡£
ÎÒÃÇÓÃ×î¶àµÄÊǵÚÒ»¸öÇé¿ö¡£»¹¼ÇµÃÎÒÃÇÔÚÊØ»¤½ø³ÌÄÇÒ»½ÚµÄÀý×ÓÂð?ÎÒÃÇÄǸöʱºòÓÃÕâ¸öº¯ÊýɱËÀÁ˸¸½ø³ÌÊØ»¤½ø³ÌµÄ´´½¨
raiseϵͳµ÷ÓÃÏò×Ô¼º·¢ËÍÒ»¸ösigÐźš£ÎÒÃÇ¿ÉÒÔÓÃÉÏÃæÄǸöº¯ÊýÀ´ÊµÏÖÕâ¸ö¹¦Äܵġ£
alarmº¯ÊýºÍʱ¼äÓеã¹ØϵÁË£¬Õâ¸öº¯Êý¿ÉÒÔÔÚsecondsÃëºóÏò×Ô¼º·¢ËÍÒ»¸öSIGALRMÐźš£ ÏÂÃæÕâ¸öº¯Êý»áÓÐʲô½á¹ûÄØ?
#includ
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
¾ÙÀý£º
Ö÷DNSµÄnamed.confÎļþ£º
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone ......
´´½¨Ê±¼ä£º2010-01-27
×÷ÕߣºSteven Yang
E-mail£ºmqyoung@gmail.com
ΪÁ˸ßЧµÄ¶Ôkernel½øÐе÷ÊÔ£¬×÷ÕßÔÚʵÑéÊÒÀûÓÃÒÑÓеÄ×ÊÔ´½øÐл·¾³ÅäÖá£Ê×ÏÈÊÇÓ²¼þ»·¾³£¬ÎÒÓÐÁ½¸öPC£¬
Ò»¸öÊÇP III£¬Debian£¨Target£©
Ò»¸öÊÇAMD 64£¬Ubuntu£¨Developer£©
Ҫͨ¹ýDeveloperµ÷ÊÔTarget£ ......
½âѹÃüÁî´óÈ«
gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar.gz
½âѹ£ºtar zxvf FileName.tar.gz
ѹËõ£ºtar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
½âѹ1£ºbzip2 -d Fi ......
ÔÚ×ÀÃæ²Ù×÷ϵͳÁìÓò£¬WindowsºÍMac
OS¢¶Ïמø´ó²¿·ÖÊг¡£¬Linux¡¢BSDµÈÆäËû¸÷ÖÖϵͳֻÄÜÆ«°²Ò»Ó磬²»¹ýËüÃǵķ¢Ðа汾ȴÊÇÏ൱·á¸»£¬³ýÁË×î³£¼ûµÄUbuntuÖ®Í⻹ÓÐ
Fedora¡¢Debian¡¢FreeBSD¡¢OpenBSD¡¢OpenSolarisµÈµÈ£¬½ñÌìÎÒÃǾ͵¥´ÓÐÔÄܽǶȱȽÏÒ»ÏÂÕâЩ²»Í¬°æ±¾¡£
¡¡¡¡²Î²â¶ÔÏó(¾ùΪ64λ°æ±¾)£º
¡¡¡¡£ Fedora 12£ºÊ ......