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

Linux±à³Ì:getopt_long¼°ÆäʹÓÃ

LinuxϵͳÏ£¬ÐèÒª´óÁ¿µÄÃüÁîÐÐÑ¡ÏÈç¹û×Ô¼ºÊÖ¶¯½âÎöËûÃǵĻ°ÊµÔÚÊÇÓÐÎ¥Èí¼þ¸´ÓõÄ˼Ï룬²»¹ý»¹ºÃ£¬GNU C libraryÁô¸øÎÒÃÇÒ»¸ö½âÎöÃüÁîÐеĽӿÚ(X/Open¹æ·¶)£¬ºÃºÃʹÓÃËü¿ÉÒÔʹÄãµÄ³ÌÐò¸Ä¹Û²»ÉÙ¡£
ʹÓÃgetopt_long()ÐèÒªÒýÈëÍ·Îļþ
#include <getopt.h>
     ÏÖÔÚÎÒÃÇʹÓÃÒ»¸öÀý×ÓÀ´ËµÃ÷ËüµÄʹÓá£
Ò»¸öÓ¦ÓóÌÐòÐèÒªÈçϵĶÌÑ¡ÏîºÍ³¤Ñ¡Ïî¡£
      ¶ÌÑ¡Ïî               ³¤Ñ¡Ïî                           ×÷ÓÃ
      -h                      --help                           Êä³ö³ÌÐòÃüÁîÐвÎÊý˵Ã÷È»ºóÍ˳ö
      -o filename        --output filename      ¸ø¶¨Êä³öÎļþÃû
      -v                      --version                       ÏÔʾ³ÌÐòµ±Ç°°æ±¾ºóÍ˺ó
ΪÁËʹÓÃgetopt_longº¯Êý£¬ÎÒÃÇÐèÒªÏÈÈ·¶¨Á½¸ö½á¹¹£º
1.Ò»¸ö×Ö·û´®£¬°üÀ¨ËùÐèÒªµÄ¶ÌÑ¡Ïî×Ö·û£¬Èç¹ûÑ¡ÏîºóÓвÎÊý£¬×Ö·ûºó¼ÓÒ»¸ö":"·ûºÅ¡£±¾ÀýÖУ¬Õâ¸ö×Ö·û´®Ó¦¸ÃΪ"ho:v"¡£(ÒòΪ-oºóÃæÓвÎÊýfilename£¬ËùÒÔ×Ö·ûºóÃæÒª¼Ó":")
2.Ò»¸ö°üº¬³¤Ñ¡Ïî×Ö·û´®µÄ½á¹¹ÌåÊý×飬ÿһ¸ö½á¹¹Ìå°üº¬4¸öÓò£¬µÚÒ»¸öÓòΪ³¤Ñ¡Ïî×Ö·û´®£¬µÚ¶þ¸öÓòÊÇÒ»¸ö±êʶ£¬Ö»ÄÜΪ0»ò1£¬·Ö±ð´ú±íûÓС¢ÓС£
µÚÈý¸öÓòÓÀԶΪNULL¡£µÚËĸöÓòΪ¶ÔÓ¦µÄ¶ÌÑ¡Ïî×Ö·û´®¡£½á¹¹ÌåÊý×éµÄ×îºóÒ»¸öÔªËØÈ«²¿ÎªNULLºÍ0£¬±êʶ½áÊø¡£ÔÚ±¾ÀýÖУ¬ËüÓ¦¸ÃÏñһϵÄÑù×Ó£º
    


Ïà¹ØÎĵµ£º

LinuxÇý¶¯Ñ§Ï°¼Ç¼ devfs_mk_cdev

LinuxÇý¶¯Ñ§Ï°¼Ç¼ devfs_mk_cdev


< type="text/javascript">
    
2.4ÄÚºË×¢²áÇý¶¯ÒªÓãº
int register_chrdev (unsigned int major, const char *name, struct file_operations *fops);
2.4ÄÚºË×¢ÏúÇý¶¯ÒªÓãº
int unregister_chrdev( unsigned int ......

Linux ÏÂSVNµÄʹÓÃ

Linux ÏÂSVNµÄʹÓÃ
Ò»¡¢install
sudo aptitude install subversion
¶þ¡¢checkout
sudo svn --username fpzeng co https://********/
***
It's necessary to  replace my username fpzeng with yours.
Èý¡¢update
sudo svn update
¾ßÌåÓõ½±ðµÄÔÙ˵£¬½ñÌì¸Õ×°ÉÏ ......

LinuxÐéÄâ»ú°²×°VMware Tools

LinuxÐéÄâ»úÏ°²×°VMware Tools
VMware ToolsËùÔÚλÖãº
VMware °²×°Â·¾¶
\VMware\VMwareWorkstation\linux.iso
1.ÐÞ¸ÄrootÓû§ÃÜÂë
10:32:36 zhangzhen@zhangzhen-desktop:~$ sudo passwd root
[sudo] password for zhangzhen:
ÊäÈëÐ嵀 UNIX ¿ÚÁ
ÖØÐÂÊäÈëÐ嵀 UNIX ¿ÚÁ
passwd£ºÒѳɹ¦¸üÐÂÃÜÂë
10:33 ......

ÔÚLinux²Ù×÷ϵͳϽ¨Á¢DHCP·þÎñÆ÷

 
DHCPÊÇDynamic Host Configuration ProtocolµÄÓ¢ÎÄËõд£¬·­Òë¹ýÀ´¾ÍÊǶ¯Ì¬Ö÷»úÅäÖÃͨѶЭÒé¡£ËüµÄ¹¦ÄܾÍÊÇΪÍøÂçÁ¬½Ó¶¯Ì¬·ÖÅäIPµØÖ·£¬ËüÔÊÐí¿Í»§¶Ë¼ÆËã»úÏòÍøÂç·þÎñÆ÷×Ô¶¯»ñÈ¡ÍøÂçÉèÖá£DHCP·þÎñÆ÷ʹµÃÍøÂç¹ÜÀíÔ±ÔÚ¹ÜÀíÍøÂçÖÐÔÚÍøÂçÖÐÔö¼Ó¡¢É¾³ýÍøÂç½Úµã»òÕßÖØÐÂÅäÖÃÍøÂçʱ£¬¹¤×÷±äµÃ·Ç³£¼òµ¥£¬ÎÞÐëÊÖ¹¤µÄ·ÖÅäIPµØÖ ......

ʹÓà GDB µ÷ÊÔ Linux Èí¼þ

×÷Õߣºdio
email: hao@peng.com.cn
ÈÕÆÚ£º8/21/2001 1:00:47 PM
ÄÚÈÝ£º
±àÒë
ÔËÐÐ gdb
µ÷ÊԻỰʾÀý
ʹÓöϵã
¸ü¶à¶ÏµãºÍ¹Û²ìµã
Core Îļþ
¶ÑÕ»¸ú×Ù
Á¬½Óµ½ÆäËü½ø³Ì
ÆäËüС¼¼ÇÉ
½áÊøÓï
²Î¿¼×ÊÁÏ
¹ØÓÚ×÷Õß
GNU µ÷ÊÔÆ÷¼ò½é
×÷Õß:David Seager
Linux µÄ´ó²¿·ÖÌØÉ«Ô´×ÔÓÚ shell µÄ GNU µ÷ÊÔÆ÷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ