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

Æß´óʵÓÃÃüÁîÐй¤¾ß ÍæתLinuxÍøÂçÅäÖÃ

¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿ËäÈ»ÏÖÔÚ´ó¶àÊýLinux·¢Ðаæ϶¼ÓÐGUIµÄÍøÂç¹ÜÀíÅäÖ㬲»¹ýÊìϤÃüÁîÐй¤¾ß»¹ÊÇ´óÓÐÖúÒæµÄ¡£ÏÂÃæÎÒÃÇÀ´¿´¿´ÕâЩÁ÷ÐÐLinux·¢ÐаæÏÂÃæµÄ³£ÓÃÃüÁî¡£¶ÔÁË£¬Èç¹ûÄãÏëÒªÁ˽â¸Ã¹¤¾ßºÍÑ¡ÏîµÄÏêϸÇé¿ö£¬¿ÉÒÔÊäÈëmanÔÙÊäÈëÕâ¸ö¹¤¾ßµÄÃû×Ö·ÃÎÊÆämanÒ³Ãæ¡£
ÏÖÔھʹò¿ªÄãµÄterminal³¢ÊÔһϰɣ¡
ÓÃÓÚ»ù±¾½Ó¿ÚÓëIPÅäÖõÄifconfig
ifconfig¹¤¾ß£¨interface configurator£¬½Ó¿ÚÅäÖÃÆ÷£©ÌṩÁËһЩ·Ç³£»ù±¾µ«ÊǷdz£ÖØÒªµÄ¹¦ÄÜ¡£Ëü¿ÉÒÔ´ò¿ªºÍ¹Ø±ÕÍøÂçÊÊÅäÆ÷£¬·ÖÅäIPµØÖ·ÓënetmaskÐÅÏ¢¡£Ò»Ð©³£ÓÃÖ¸ÁîÈçÏ£º
²é¿´ÍøÂç½Ó¿Úµ±Ç°ÅäÖÃÓë½Ó¿ÚÃüÃû£º
ifconfig
´ò¿ª£¨up£©»ò¹Ø±Õ£¨down£©ÊÊÅäÆ÷
ifconfig <ÍøÂçÃû> <up|down>
ΪÊÊÅäÆ÷·ÖÅäIPµØÖ·£º
ifconfig <ÍøÂçÃû> <ipµØÖ·>
ΪÊÊÅäÆ÷·ÖÅäµÚ¶þ¸öIPµØÖ·£º
ifconfig <ÍøÂçÃû:ʵÀýÊý> <ipµØÖ·>
·¶Àý£ºifconfig eth0:0 192.168.1.101
Ïêϸ½éÉÜ£ºLinuxÃüÁîÍøÂç²Ù×÷Ö®ifconfig
ÓÃÓÚ¹ÜÀíÒÔÌ«Íø¿¨µÄethtool¹¤¾ß
Ethtool¿ÉÒԲ鿴ºÍÐÞ¸ÄÒÔÌ«ÊÊÅäÆ÷µÄ¸÷ÖÖÉèÖ㨲»°üÀ¨Wi-FiÍø¿¨£©£¬°üÀ¨tx/rx£¬checksummingºÍwake-on-LANÉèÖá£ÏÂÃæÊÇһЩÓÐÓõÄÃüÁ
ÏÔʾij¸öÍøÂçÊÊÅäÆ÷µÄÇý¶¯ÐÅÏ¢£¬ÊÊÓÃÓÚ²éѯÈí¼þ¼æÈÝÐÔµÄÇé¿ö£º
ethtool -i <½Ó¿ÚÃû>
ÏÔʾÍøÂçÊý¾Ý£º
ethtool -S
ÉèÖÃÊÊÅäÆ÷Á¬½ÓËٶȣ¨Mbps£©
ethtool speed <10|100|1000>
Ïêϸ½éÉÜ£ºLinux/UnixÃüÁîÖ®Ethtool
iwconfigÅäÖÃÎÞÏßÍøÂç
iwconfig¹¤¾ß¿ÉÒÔËãÊÇÎÞÏßÍø¿¨µÄifconfigºÍethtool¡£Äã¿ÉÒÔ¼ì²é»ù±¾µÄWi-FiÍøÂçÉèÖã¬ÈçSSID¡¢channelºÍ¼ÓÃܵÈϸ½Ú¡£´ËÍ⻹¿ÉÒÔÐÞ¸ÄһЩ¸ß¼¶ÉèÖ㬰üÀ¨½ÓÊÕÃô¸Ð¶È£¬RTS/CTS£¬ËéƬ£¬ÒÔ¼°ÖØÊÔÊý¡£ÏÂÃæ½éÉܼ¸¸öÓÐÓõÄÃüÁ
ÏÔʾµ±Ç°ÎÞÏßÉèÖ㬰üÀ¨½Ó¿ÚÃû³Æ£º
iwconfig
ÉèÖÃESSID£¨À©Õ¹·þÎñÉèÖÃʶ±ðÆ÷£©»òÍøÂçÃû£º
iwconfig <½Ó¿ÚÃû> essid <ÍøÂçÃû>
·¶Àý£ºiwconfig <½Ó¿ÚÃû> "my network"
·¶Àý£ºExample: iwconfig <½Ó¿ÚÃû> any
ÉèÖÃradioµÄÎÞÏßchannel£¨1-11£©£º
iwconfig <½Ó¿ÚÃû> <channel>
ÊäÈëWEP¼ÓÃÜÃÜÔ¿£¨WPAºÍWPA1Éв»Ö§³Ö£¬ÐèÒªwpa_supplicantµÄÖ§³Ö£©£º
iwconfig eth0 key <HEX¸ñʽµÄÃÜÔ¿>
ÏÞÖÆÊÊÅäÆ÷½öÄÜÔÚÖ¸¶¨MACµØÖ·ÏÂÁ¬½Óµ½AP£º
iwconfig <½Ó¿ÚÃû> ap <macµØÖ·>
·¶Àý£ºiwconfig eth0 ap 00:60:1D:01:23:45
ÉèÖÃradioµÄ·¢ÉäÇ¿¶È£¬½öÔÚÎÞÏßÍø¿¨Ö§³ÖµÄÇé¿öÏÂÓÐЧ¡£Ä¬Èϵ¥Î»ÎªdBm£¬¿ÉÉ


Ïà¹ØÎĵµ£º

linux or unix ³£ÓÃÃüÁî

¿ì½Ý¼ü£ºctrl+c ctrl+d
1.shell ·ÖΪͼÐÎshellºÍÃüÁîshell ÃüÁîshell·ÖΪbashºÍcsh£¬Çл»µ½cshÓÃcsh£¬exit·µ»Øbash
2.telnet Ô¶³ÌµÇ½unix
telnet 192.168.0.25
login£ºhz0904 Óû§Ãû
password£ºsd0904 ÃÜÂë¹æÔò£º6-8¸ö×Ö·û£¬ÖÁÉÙ°üº¬×ÖĸÒÔ¼°1¸öÊý×Ö£¬²»ÄÜÓëµÇ¼ÃûÏàͬ
3.passwd£º ÐÞ¸ÄÃÜÂë>ÊäÈëÏÖÓпÚÁî>ÊäÈë ......

Linux/Unix ³£ÓÃÃüÁîÒ»

Ò»¡¢df
1.×÷ÓÃ
dfÃüÁîÓÃÀ´¼ì²éÎļþϵͳµÄ´ÅÅÌ¿Õ¼äÕ¼ÓÃÇé¿ö£¬Ê¹ÓÃȨÏÞÊÇËùÓÐÓû§¡£
2.¸ñʽ
df [options]
3.Ö÷Òª²ÎÊý
£­s£º¶Ôÿ¸öNames²ÎÊýÖ»¸ø³öÕ¼ÓõÄÊý¾Ý¿é×ÜÊý¡£
£­a£ºµÝ¹éµØÏÔʾָ¶¨Ä¿Â¼Öи÷Îļþ¼°×ÓĿ¼Öи÷ÎļþÕ¼ÓõÄÊý¾Ý¿éÊý¡£Èô¼È²»Ö¸¶¨£­s£¬Ò²²»Ö¸¶¨£­a£¬ÔòÖ»ÏÔʾNamesÖеÄÿһ¸öĿ¼¼°ÆäÖеĸ÷×ÓĿ¼ËùÕ¼µÄ ......

Linux/Unix ³£ÓÃÃüÁî¶þ

ËÄ¡¢quota
1.×÷ÓÃ
quotaÃüÁîÓÃÀ´ÏÔʾ´ÅÅÌʹÓÃÇé¿öºÍÏÞÖÆÇé¿ö£¬Ê¹ÓÃȨÏÞ³¬¼¶Óû§¡£
2.¸ñʽ
quota [£­g][£­u][£­v][£­p] Óû§Ãû ×éÃû
3.²ÎÊý
£­g£ºÏÔʾÓû§ËùÔÚ×éµÄ´ÅÅÌʹÓÃÏÞÖÆ¡£
£­u£ºÏÔʾÓû§µÄ´ÅÅÌʹÓÃÏÞÖÆ¡£
£­v£ºÏÔʾûÓзÖÅä¿Õ¼äµÄÎļþϵͳµÄ·ÖÅäÇé¿ö¡£
£­p£ºÏÔʾ¼ò»¯ÐÅÏ¢¡£
4.Ó¦ÓÃʵÀý
ÔÚÆóÒµÓ¦ÓÃÖдÅÅÌÅä ......

Linux shared library Loading class

Linked from: http://www.faqs.org/docs/Linux-mini/C++-dlopen.html
//1.==== main.cpp =============================================================
// How to build?
// g++ main.cpp -ldl
//=============================================================================
#include "polygon.h"
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ