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

¸ß¼¶Linux³ÌÐòÉè¼ÆµÚÈýÕ£º½ø³Ì

ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸öΨһµÄ½ø³ÌºÅ¡£ ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸ö¸¸½ø³Ì¡£ ϵͳÖеĽø³ÌÒÔÊ÷µÄÐÎʽ×éÖ¯£¬init½ø³Ì(½ø³ÌºÅΪ1)×÷Ϊ¸ù¡£ ½ø³Ì0Êǵ÷¶È½ø³Ì£¬Ã»ÓгÌÐòÓëÖ®¶ÔÓ¦£¬ÊÇÄں˵ÄÒ»²¿·Ö¡£ ½ø³Ì1ÊÇinit½ø³Ì£¬ÊÇÔÚϵͳÆô¶¯µÄ½×¶ÎÓÉÄÚºËÆô¶¯µÄ£¬¶ÔÓ¦/sbin/init³ÌÐò£¬ÊÇÆÕͨµÄÓû§½ø³Ì¡£ ³ÌÐòÖпÉÒÔͨ¹ýgetpid()µÃµ½½ø³ÌºÅ£¬Í¨¹ýgetppid()µÃµ½¸¸½ø³ÌµÄ½ø³ÌºÅ¡£ #include #include int main () {     printf (¡°The process ID is %d\n¡±, (int) getpid ());     printf (¡°The parent process ID is %d\n¡±, (int) getppid ());     return 0; } ͨ¹ýpsÃüÁî¿ÉÒԵõ½ÏµÍ³ÖÐÔËÐеÄËùÓнø³Ì¡£ ͨ¹ýkillÃüÁî¿ÉÒÔɱµôij¸ö½ø³Ì¡£ 1¡¢´´½¨½ø³Ì 1.1¡¢systemº¯Êý systemº¯ÊýÌṩÁËÒ»ÖÖÔÚ³ÌÐòÖÐÔËÐÐÒ»¸öÃüÁîµÄ¼òµ¥·½·¨¡£ #include int main () {     int return_value;     return_value = system (¡°ls -l /¡±);     return return_value; } 1.2¡¢fork¼°execº¯Êý µ±³ÌÐòµ÷ÓÃforkµÄʱºò£¬ÔòÒ»¸öÍêÈ«¸´ÖƵÄ×Ó³ÌÐò±»´´½¨¡£ ¸¸½ø³Ì½«´Ófork±»µ÷Óõĵط½¼ÌÐøÖ´ÐÐÏÂÈ¥¡£ ×Ó½ø³ÌÒ²ÊÇ´ÓÏàͬµÄµØ·½ÔËÐÐÏÂÈ¥¡£ ¸¸½ø³ÌÖÐforkº¯ÊýµÄ·µ»ØÖµÊÇ×Ó½ø³ÌµÄ½ø³ÌºÅ¡£ ×Ó½ø³ÌÖÐforkº¯ÊýµÄ·µ»ØÖµÊÇÁã¡£ #include #include #include int main () {     pid_t child_pid;     printf (¡°the main program process ID is %d\n¡±, (int) getpid ());     child_pid = fork ();     if (child_pid != 0) {         printf (¡°this is the parent process, with id %d\n¡±, (int) getpid ());     


Ïà¹ØÎĵµ£º

LinuxϵÄftp¹¤¾ß¼°ÖÐÎÄÂÒÂëµÄ½â¾ö

°²×°gftp
yum install gftp
ĬÈÏ״̬ÏÂgftpÊÇûÓÐÉèÖÃ×Ö·û±àÂëµÄ£¬ËùÒÔÎÒÃÇÉÏFTPµÄʱºò£¬¿´µ½ÀïÃæµÄÖÐÎÄÎļþÃûÈ«²¿ÊÇÂÒÂ룬»òÔò²»²¿·ÖÎļþ¿´µ½Îļþ¼ÐȴûÃû×Ö£»
ÆäʵÔÚgftp-2.0.17ÒÔºóµÄ°æ±¾¶¼ÒѾ­ºÜºÃÖ§³Öºº×ÖÁË£¬ÎÒµÄÉèÖ÷½·¨ÊǶÔËüµÄÅäÖÃÎļþÐ޸ļ´¿É£¡
Ò»°ãµÄÈí¼þÅäÖÃÎļþ»á·ÅÔÚÓû§Ä¿Â¼Ï£¬ÀýÈçÎÒÓÃr ......

LinuxÏà¹ØÃüÁһ£©

linuxÃüÁî´óÈ« cat cd
chmod chown
cp cut
Ãû³Æ£ºcat
ʹÓÃȨÏÞ£ºËùÓÐʹÓÃÕß
ʹÓ÷½Ê½£ºcat [-AbeEnstTuv] [--help] [--version] fileName
˵Ã÷£º°Ñµµ°¸´®Á¬½Óºó´«µ½»ù±¾Êä³ö£¨Ó©Ä»»ò¼Ó > fileName µ½ÁíÒ»¸öµµ°¸£©
²ÎÊý£º
-n »ò --number ÓÉ 1 ¿ªÊ¼¶ÔËùÓÐÊä³öµÄÐÐÊý±àºÅ
-b »ò --number-nonblank ºÍ -n ......

linux I2CÇý¶¯·ÖÎö

I2CÊÇPhillips¿ª·¢µÄ2ÏߵĴ®ÐÐ×ÜÏßЭÒ顣ͨ³£Ó¦ÓÃÔÚǶÈëʽϵͳÖÐÈò»Í¬µÄ×é¼þͨÐÅ£¬PCÖ÷°å¿ÉÒÔͨ¹ýI2CÀ´Ó벻ͬµÄ´«¸ÐÆ÷ͨÐÅ¡£ÕâЩ´«¸ÐÆ÷ͨ³£±¨¸æ·çÉÈËٶȣ¬´¦ÀíÆ÷ζȺÍÕû¸öÓ²¼þϵͳµÄÐÅÏ¢£¬Õâ¸öЭÒéÒ²¿ÉÒÔÓÃÔÚRAM chipsÉÏ£¬Ïò²Ù×÷ϵͳÌṩDIMMµÄÐÅÏ¢¡£
ÔÚ2.0ʱI2CµÄkernelÔ´Âë²»ÔÚÄÚºËÀïµÄ£¬2.4Äں˰üÀ¨ÁËÒ»µã¶ÔI2CµÄÖ§³Ö ......

LinuxÖÕ¶ËÉ豸Çý¶¯

ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u3/94284/showart_1981110.html
ÔÚLinuxϵͳÖУ¬ÖÕ¶ËÉ豸·Ç³£ÖØÒª£¬Ã»ÓÐÖÕ¶ËÉ豸£¬ÏµÍ³½«ÎÞ·¨ÏòÓû§·´À¡ÐÅÏ¢£¬LinuxÖаüº¬¿ØÖÆ̨¡¢´®¿ÚºÍαÖÕ¶Ë3ÀàÖÕ¶ËÉ豸¡£
14.1ÖÕ¶ËÉ豸
    ÔÚLinuxϵͳÖУ¬ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ ......

linux ÏÂweblogicµÄ°²×°

Ò»¡¢ÏÂÔØweblogic for linux £¬°æ±¾ºÜ¶à£¬ÎÒϵÄÊÇbin°æ±¾£¬Õâ¸ö°æ±¾µÄ°²×°·Ç³£¼òµ¥¡£ÎÒÏÂÔصÄÊÇ£º[WebLogic.Platform.8.1.with.SP5.for.LinuxÓ¢ÎÄ°æ].platform815_linux32.bin ¶þ ¡¢Ïë°ì·¨Åªµ½ÐéÄâ»úÀïµÄlinuxÖС£ ÎÒʵÔÚwindowsÏÂÃæÏÂÔصģ¬È»ºóͨ¹ýSSHÉÏ´«µ½ÐéÄâ»úÀïµÄ£¬µ±È»·½·¨ºÜ¶à£¬ÔÚÐéÄâ»úÀïÉÏÍøÒ²ÊÇ¿ÉÒÔÏÂÔصġ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ