Linux±ØѧµÄ60¸öÃüÁî
Linux±ØѧµÄ60¸öÃüÁî
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ðа汾×îÉÙµÄÃüÁîÒ²ÓÐ200¶à¸ö¡£ÕâÀï±ÊÕ߰ѱȽÏÖØÒªºÍʹÓÃƵÂÊ×î¶àµÄÃüÁ°´ÕÕËüÃÇÔÚϵͳÖеÄ×÷Ó÷ֳÉÏÂÃæÁù¸ö²¿·ÖÒ»Ò»½éÉÜ¡£
¡ô °²×°ºÍµÇ¼ÃüÁlogin¡¢shutdown¡¢halt¡¢reboot¡¢install¡¢mount¡¢umount¡¢chsh¡¢exit¡¢last£»
¡ô Îļþ´¦ÀíÃüÁfile¡¢mkdir¡¢grep¡¢dd¡¢find¡¢mv¡¢ls¡¢diff¡¢cat¡¢ln£»
¡ô ϵͳ¹ÜÀíÏà¹ØÃüÁdf¡¢top¡¢free¡¢quota¡¢at¡¢lp¡¢adduser¡¢groupadd¡¢kill¡¢crontab£»
¡ô ÍøÂç²Ù×÷ÃüÁifconfig¡¢ip¡¢ping¡¢netstat¡¢telnet¡¢ftp¡¢route¡¢rlogin¡¢rcp¡¢finger¡¢mail¡¢ nslookup£»
¡ô ϵͳ°²È«Ïà¹ØÃüÁpasswd¡¢su¡¢umask¡¢chgrp¡¢chmod¡¢chown¡¢chattr¡¢sudo ps¡¢who£»
¡ô ÆäËüÃüÁtar¡¢unzip¡¢gunzip¡¢unarj¡¢mtools¡¢man¡¢unendcode¡¢uudecode¡£
±¾ÎÄÒÔMandrake Linux 9.1(Kenrel 2.4.21)ΪÀý£¬½éÉÜLinuxϵݲװºÍµÇ¼ÃüÁî¡£immortality°´£ºÇëÓÃctrl+fÔÚ±¾Ò³ÖвéÕÒijһ²¿·ÖµÄÄÚÈÝ»òijһÃüÁîµÄÓ÷¨¡£
Linux±ØѧµÄ60¸öÃüÁî
(1)-°²×°ÓëµÇ½ÃüÁî
login
1.×÷Óà loginµÄ×÷ÓÃÊǵǼϵͳ£¬ËüµÄʹÓÃȨÏÞÊÇËùÓÐÓû§¡£
2.¸ñʽ login [name][£p ][£h Ö÷»úÃû³Æ]
3.Ö÷Òª²ÎÊý £p:֪ͨlogin±£³ÖÏÖÔڵĻ·¾³²ÎÊý¡£
£h:ÓÃÀ´ÏòÔ¶³ÌµÇ¼µÄÖ®¼ä´«ÊäÓû§Ãû¡£
4.Ó¦Óü¼ÇÉ LinuxÊÇÒ»¸öÕæÕýµÄ¶àÓû§²Ù×÷ϵͳ£¬¿ÉÒÔͬʱ½ÓÊܶà¸öÓû§µÇ¼£¬»¹ÔÊÐíÒ»¸öÓû§½øÐжà´ÎµÇ¼¡£ÕâÊÇÒòΪLinuxºÍÐí¶à°æ±¾µÄUnixÒ»Ñù£¬ÌṩÁËÐéÄâ¿ØÖÆ̨µÄ·ÃÎÊ·½Ê½£¬ÔÊÐíÓû§ÔÚͬһʱ¼ä´Ó¿ØÖÆ̨£¨ÏµÍ³µÄ¿ØÖÆ̨ÊÇÓëϵͳֱ½ÓÏàÁ¬µÄ¼àÊÓÆ÷ºÍ¼üÅÌ£©½øÐжà´ÎµÇ¼¡£Ã¿¸öÐéÄâ¿ØÖÆ̨¿ÉÒÔ¿´×÷ÊÇÒ»¸ö¶ÀÁ¢µÄ¹¤×÷Õ¾£¬¹¤×÷̨֮¼ä¿ÉÒÔÇл»¡£ÐéÄâ¿ØÖÆ̨µÄÇл»¿ÉÒÔͨ¹ý°´ÏÂAlt¼üºÍÒ»¸ö¹¦ÄܼüÀ´ÊµÏÖ£¬Í¨³£Ê¹ÓÃF1-F6 ¡£ÀýÈ磬Óû§µÇ¼ºó£¬°´Ò»Ï“Alt+F2”¼ü£¬Óû§¾Í¿ÉÒÔ¿´µ½ÉÏÃæ³öÏֵēlogin:”Ìáʾ·û£¬ËµÃ÷Óû§¿´µ½Á˵ڶþ¸öÐéÄâ¿ØÖÆ̨¡£È»ºóÖ»Ðè°´“A
Ïà¹ØÎĵµ£º
ÓÐʱÓöµ½ÈçÏÂÎÊÌ⣬Íø¿¨ÉÏÓиö²æ£¬ÈκÎÃüÁÎÞ·¨ÐÞ¸´¡£
·¢ÏÖÍø¿¨ºì²æ֮ǰÊÔ¹ýÏÂÃæÃüÁ¿Ï¶¨¶¼²»Ðеġ£
sudo ifconfig eth0 down
sudo ifconfig eth0 up
sudo /etc/init.d/dhcp3-server restart
sudo /etc/init.d/networking restart
ÎÊÌâ½â¾öºÜ¼òµ¥£¬°ÑÈçϵĸ´Ñ¡¿ò¹´Éϼ´¿É£¬ÐéÄâ»ú¿ª» ......
//»ñÈ¡×ÓÍøÑÚÂëµÄº¯ÊýQString GetLocalNetMask()
{
int sock_netmask;
char netmask_addr[50];
struct ifreq ifr_mask;
struct sockaddr_in *net_mask;
sock_netmask = socket( AF_INET, SOCK_STREAM, 0 );
if( sock_netmask == -1)
{
perror("create socket failture...GetLocalNetMask\n");
......
µ±ÎÒÃǵijÌÐò±ÀÀ£Ê±£¬ÄÚºËÓпÉÄܰѸóÌÐòµ±Ç°ÄÚ´æÓ³Éäµ½coreÎļþÀ·½±ã³ÌÐòÔ±ÕÒµ½³ÌÐò³öÏÖÎÊÌâµÄµØ·½¡£×î³£³öÏֵģ¬¼¸ºõËùÓÐC³ÌÐòÔ±¶¼³öÏÖ¹ýµÄ´íÎó¾ÍÊÇ“¶Î´íÎó”ÁË¡£Ò²ÊÇ×îÄѲé³öÎÊÌâÔÒòµÄÒ»¸ö´íÎó¡£ÏÂÃæÎÒÃǾÍÕë¶Ô“¶Î´íÎó”À´·ÖÎöcoreÎļþµÄ²úÉú¡¢ÒÔ¼°ÎÒÃÇÈçºÎÀûÓÃcoreÎļþÕÒµ½³öÏÖ±ÀÀ£µÄµØ·½¡ ......