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

linux ϵÄÄÑÌ⣬Çë´ó¼Ò°ï¸ö棿

ÎÒÏëÔÚ±à³Ìµ±ÖÐʵÏÖifconfigµÄ¹¦ÄÜ£¬ÓÐûÓгýÁË¿´Ô´´úÂ룬ÓбðµÄ·½·¨Â𣿿´ÄǸöÌ«·Ñʱ¼äÁË£¬ÎÒÏ뾡¿ì½â¾öÕâ¸öÎÊÌ⣬Çë´ó¼Ò°ï¸öæ,
Ö±½Ó system("ifconfig");

C/C++ code:


system("ifconfig");





ÄǺóÃæµÄ²ÎÊýÔõô°ì


ÓÃÃüÁ
cd /sbin
./ifconfig

ÒýÓÃ
ÄǺóÃæµÄ²ÎÊýÔõô°ì



²ÎÊýÈç·¨ÅÚÖÆ£¬¿ÉÒÔ´«½øÈ¥£»

C/C++ code:
std:string strCommand = "ifconfig ";
strCommand.append("-a");
system( strCommand.c_str() );



ÒýÓÃ
ÒýÓà 3 Â¥ binbinxiaogui µÄ»Ø¸´:
ÄǺóÃæµÄ²ÎÊýÔõô°ì


²ÎÊýÈç·¨ÅÚÖÆ£¬¿ÉÒÔ´«½øÈ¥£»

C/C++ codestd:string  strCommand="ifconfig";
strCommand.append("-a");
system( strCommand.c_str() );




ûÃ÷°×£¬ÎÒµÄÒâ˼ÊÇÄÇЩIPÖ®ÀàµÄ¶¼·ÅÔÚÒ»¸ö±äÁ¿ÀïÄǸöÔõôŪ°¡


ÏÈ°ÑÃüÁî¼°²ÎÊý¶¼Ð´µ½Ò»¸ö×Ö·û´®£¬È»ºóÔÙÓÃsystem(str);


Ïà¹ØÎÊ´ð£º

javaÈçºÎ¿ØÖÆÔ¶³ÌLinuxÖØÆô

ÎÒÄ¿Ç°ÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃ棬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......

±±¾©¼±ÕÐlinux¡¢PHPÍøÂçÓ¦Óÿª·¢

ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£

¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......

linux ÄÚ´æ³õʼ»¯

linux³õʼ»¯Ê±°ÑÖ§³ÖµÄÎïÀíÄڴ涼ӳÉäµ½page tableÖУ¬Ö®ºó½ø³ÌÐèÒªÄÚ´æʱ£¬Ò²ÊÇÓ³Éäµ½Õâ¸öÎïÀíÄÚ´æÖУ¬Èç´Ë˵À´£¬linux³õʼ»¯Ê±´´½¨µÄpage tableºÍ½ø³ÌÖд´½¨µÄpage tableÖ¸Ïòͬһ¿éÎïÀíÒ³ÃæÂð£¿ÕâÑù×öµÄÄ¿µÄÊÇʲô ......

¸ü¸ÄlinuxĿ¼

Ó¦ÓÃϵͳÊÇ°²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔصãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔص㣬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«Ô­À ......

linuxÏÂÔõÑùÈÃ×Ô¼ºÐ´µÄ³ÌÐòÔÚÈκÎĿ¼¶¼¿ÉÒÔÓÃ

ÔÚlinuxÏÂдµÄһЩС³ÌÐòºÍ½Å²½£¬Ã¿´ÎÒªÔËÐж¼ÓÐÇл»µ½ËüËùÔÚµÄĿ¼£¬
ÔõÑùÈÃËüÔÚÆäËûĿ¼Ҳ¿ÉÒÔÓÃÄØ£¿¾ÍÈçÓÃvi»òlsÕâЩÃüÁîÒ»Ñù
³¢ÊÔ¹ýÌí¼Ó»·¾³±äÁ¿£¬µ«²»³É¹¦£¬²»¶®
ûÓÐÈ˻شð

ÏñviÄÇЩ£¬ËüÃÇËùÔÚµÄĿ¼¶¼Å ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ