linuxϵͳ¹ÜÀí
½ø³Ì¹ÜÀí£º
×Ô¶¯Ö´Ðнø³ÌµÄÃüÁatºÍbatch¡£ÆäÖÐatÖÆ¶¨½ø³ÌÖ´ÐеÄʱ¼ä£¬batchÔÚϵͳ¿ÕÏÐʱ×Ô¶¯Ö´ÐС£crontab¿ÉÒÔÖÜÆÚÐÔµÄÖ´Ðнø³Ì£¬±ÈÈçÈÃij½Å±¾ÖÜÆÚÐÔµÄÖ´ÐУ¬³£ÓÃÓÚϵͳ¼à²â¡£ËüµÄÃüÁî¸ñʽÈçÏ£º
ʱ³Ì±íµÄ¸ñʽÈçÏÂ
:
f1 f2 f3 f4 f5 program
ÆäÖÐ f1 ÊDZíʾ·ÖÖÓ£¬f2 ±íʾСʱ£¬f3 ±íʾһ¸öÔ·ÝÖеĵڼ¸ÈÕ£¬f4 ±íʾÔ·ݣ¬f5 ±íʾһ¸öÐÇÆÚÖеĵڼ¸Ìì¡£program ±íʾҪִÐеijÌʽ¡£
¾ßÌå¿É²Î¼û£ºhttp://baike.baidu.com/view/1229061.htm
psºÍtopÃüÁî¶¼ÊÇÓÃÀ´²é¿´½ø³Ì״̬µÄ£¬²»Í¬µãÔÚÓÚpsÊǾ²Ì¬ÏÔʾ£¬topÊǶ¯Ì¬ÏÔʾ¡£top»¹ÄÜÏÔʾcpu£¬Äڴ棬ÐéÄâÄÚ´æµÄʹÓÃÇé¿ö¡£
pstree£ºÊ÷×´ÏÔʾ½ø³Ì¡£
nice£º³ÌÐòµÄÓÅÏȼ¶ÉèÖá£
kill+½ø³ÌºÅ ½áÊø½ø³Ì£¬µ«ÊÇpsÃüÁîÈç¹û²»¼Ó-eÑ¡Ï²»»áÏÔʾ´ò¿ªµÄ½ø³Ì£¬¼ÓÁË-eÏÔʾÁ˺ܶ࣬ÓÖ²»ÖªµÀË´ú±íË
²é¿´µ±Ç°Ê¹ÓõÄShell£ºecho $SHELL
¸ü¸ÄShell£ºchsh ²»ÖªµÀ²ÎÊýÔõôÉ裬ÓÐʱ¼äÔÙÊÔÊÔ¡£
ÍøÂç¹ÜÀí£º
ifconfig£ºÓÃÓÚÅäÖò¢²é¿´ÍøÂç½Ó¿ÚµÄÅäÖÃÇé¿ö.ifconfig eth0 192.168.0.254 netmask 255.255.255.0 //ÅäÖÃeth0µÄIPµØÖ·£¬²¢¼¤»î
netstat£ºÏÔÊ¾ÍøÂçÁ¬½Ó¡¢Â·ÓɱíºÍÍøÂç½Ó¿ÚÐÅÏ¢£¬¿ÉÒÔÈÃÓû§µÃ֪Ŀǰ¶¼ÓÐÄÄÐ©ÍøÂçÁ¬½ÓÕýÔÚÔË×÷¡£netstat -na ¿ÉÒԲ鿴MySQLµÈ·þÎñÊÇ·ñ¿ªÆô£¬ÒÔ¼°¶Ë¿ÚºÅ¡£
netstat -i ÏÔÊ¾Íø¿¨ÔËÐÐÇé¿ö netstat -r ²é¿´Ö÷»úµÄ·ÓÉÁбí
route£ºÕâ¸öÃüÁî¿ÉÒÔΪifconfigÃüÁîÅäÖõÄÍø¿¨ÉèÖþ²Ì¬Â·ÓÉ¡£
ÎÒÃÇͨ¹ý¼¸¸öÀý×ÓÀ´ËµÃ÷ÈçºÎʹÓÃrouteÃüÁ
route add -net 127.0.0.0
Õâ¸öÃüÁÏò·ÓɱíÖÐÌí¼ÓÒ»¸öÖ¸¶¨µØÖ·»òÕßÍøÂçµÄ·ÓÉ¡£×¢Òâ´ËÊ±ÍøÂçΪAÀàµØÖ·£¬ÑÚÂë±»ÉèÖÃΪ255.0.0.0£¬Õâ¸öÐÂÌí¼ÓµÄÌõÄ¿±»Á¬½Óµ½loÉ豸ÉÏ¡£
route add -net xxx.xxx.xxx.xxx netmask 255.255.255.0 dev eth0
Õâ¸öÃüÁîΪIPµØÖ·Îªxxx.xxx.xxx.xxxµÄÖ÷»úÔö¼ÓÒ»¸ö·ÓÉ£¬ËüµÄÍøÂçÑÚÂë±»ÉèÖÃΪ255.255.255.0¡£
route del -net xxx.xxx.xxx.xxx
´ËÃüÁɾ³ýxxx.xxx.xxx.xxxÕâ¸öÍøÂçµÄ·ÓÉ¡£
ʹÓÃrouteÃüÁ¿ÉÒԺܷ½±ãµØ¶ÔÕû¸öÍøÂçµÄ·ÓÉÐÅÏ¢½øÐйÜÀí£¬ÆäÊä³ö½á¹ûÊÇÍøÂçµÄ·ÓÉ±í¡£
traceroute£ºÓÃÓÚÏÔʾÊý¾Ý°üµ½´ïÄ¿µÄÖ÷»úËù¾¹ýµÄ·ÓÉ¡£
tcpdump£ºÓÃÓÚ¼àÊÓTCP/IPÁ¬½Ó²¢Ö±½Ó¶ÁÈ¡Êý¾ÝÁ´Â·²ãµÄÊý¾Ý°üÍ·¡£tcpdump -i eth0 src host
hostname ¿ÉÒÔ¶ÁÈ¡Ö÷»úhostname·¢Ë͵ÄËùÓÐÊý¾Ý£»tcpdump -i eth0 src host hostname
¿ÉÒÔ¼àÊÓËùÓÐË͵½Ö÷»úhostnameµÄÊý¾Ý°ü¡£
nslooku
Ïà¹ØÎĵµ£º
LinuxϽâѹÃüÁî´óÈ«
LinuxϽâѹÃüÁî´óÈ«
.tar
½âѹ:tar xvf filename.tar
´ò°ü:tar cvf filename.tar dirname
.gz
½âѹ:gzip -d filename.gz / gunzip filename.gz
ѹËõ:gzip filename
.tar.gz/.tgz
½âѹ:tar zxvf  ......
ΪÁ˴nfsϵͳ,...ËùÒÔ ±ØÐëÔÚÄÚºËÒÆÖ²ºÃÍø¿¨Çý¶¯. ÎÒ¿¿.ÕÕÏÂÃæ×ö,Ò»´ÎÄܳɹ¦.
ÎÒµÄÖ÷°åÊÇÓÑÉÆÖ®±Û 2410. »·¾³ÊÇ vmware+ubuntu
LINUX2.6.14ÏÂCS8900µÄÒÆÖ²£¨Fs2410£©
1.
(ÎļþÔÚÎÒµÄÏÂÔØ°æÓÐ)
¿½±´Îļþcs8900.c cs8900.hµ½ linux2.6.14.1/drivers/net
½øÈëĿ¼cs8900
cp cs8900.c ../linux-2.6.14.1/dri ......
linux ÊÂÇéÒª´ÓSSH˵Æð£¬×ʼÎÒÃÇÔ¶³Ì·ÃÎÊlinux·þÎñÆ÷£¬¶¼ÊÇÓõÄSSH£¬Õâ¸ö¶«Î÷ºÜ·½±ãÁË£¬ÌṩÁËÃüÁîÐУ¬»¹Óд°¿Ú½çÃæ£¬ÓÃÆðÀ´·½±ã£¬ÏàÐÅÓùýµÄÈ˶¼ÓÐÌå»á£¬µ«Êǵ±ÎÒ»»³ÉflashFXPÁ¬½ÓͬÑùµÄlinux·þÎñÆ÷ʱÔõô¶¼Á¬²»ÉÏ£¬ÕâÏÂÓôÃÆ»µÁË£¬Ôõô°ìÄØ£¿ ÔÚ¾ÀúÁËÎÞÊý´ÎµÄ³¢ÊÔÖ®ºó£ ......
1. 10 ¸ö×î¿áµÄ Linux µ¥ÐÐÃüÁî(ת) (http://linuxtoy.org/archives/top-10-one-liners.html )
ÏÂÃæÊÇÀ´×Ô Commandlinefu ÍøÕ¾ÓÉÓû§Í¶Æ±¾ö³öµÄ 10 ¸ö×î¿áµÄ Linux µ¥ÐÐÃüÁϣÍû¶ÔÄãÓÐÓá£
sudo !!
ÒÔ root ÕÊ»§Ö´ÐÐÉÏÒ»ÌõÃüÁî¡£
python -m SimpleHTTPServer
ÀûÓà Python ´î½¨Ò»¸ö¼òµ¥µÄ Web · ......
qtĬÈϵıà³ÌÓïÑÔΪC++ÓïÑÔ¡£Èç¹ûÄãÓÃqt±àÒë.cÎļþ£¬»á³öÏÖÕÒ²»µ½CÓïÑÔµÄĬÈÏÍ·ÎļþµÈ´íÎó£¨È磺stdio.hµÈ£©¡£qtÖв»Ö§³Ö
extern "C"{}µÄÕâÖÖд·¨£¬ÎÒǰ¼¸ÌìÓÐÒ»¸öC³ÌÐòÐèÒªÒÆÖ²µ½QtµÄ¹¤³ÌÖУ¬±¾Ï£ÍûÖ±½Óextern "C"¾ÍokÁË£¬µ«·¢ÏÖqt4¾ÓÈ»²»Ö§³ÖÕâÖÖд·¨¡£ÎҵijÌÐòÖÐÓõ½Á˺ü¸¸ölinuxϵͳͷÎļþ£¬ÊÇÏò´®¿Ú·¢Ö¸ÁîÖ®ÀàµÄ³ÌÐò ......