linux ²Ù×÷
Ò»¡¢ ShellÃüÁî
1. man vi
2. echo $PATH
3. catÏÔʾÎļþÄÚÈÝ
1 cat ÎļþÃûÒ»ÎļþÃû¶þ
2 moreÎļþÃû
3 lessÎļþÃû ÏòÇ°·°´b¼ü;Ïòºó·°´p¼ü;Ö¸¶¨Î»ÖÃÊäÈë°Ù·Ö±È;Í˳öq
4 head ÐÐÊýÎļþÃû
5 tail
4. vi ±à¼Îļþ
vi ÎļþÃû
Ò»°ãģʽ(Esc yy¸´ÖÆ pÕ³Ìù hjklÒƶ¯¹â±ê)
±à¼Ä£Ê½(i,o,a,r)
Ö¸Áîģʽ(: /ÏòÇ°ËÑË÷ºóÓÃn ?ÏòºóËÑË÷ºóÓÃn .¼ÌÐøÇ°Ò»´Î²Ù×÷)
5. cp rm mvÎļþµÄ¸´ÖÆɾ³ýÓëÒƶ¯
1 cp [Ñ¡Ïî] Ô´Îļþ»òĿ¼Ŀ±êÎļþ»òĿ¼
[a f i p r]
2 rm [Ñ¡Ïî] Îļþ
[f r i]
3 mv [Ñ¡Ïî] Ô´Îļþ»òĿ¼Ŀ±êÎļþ»òĿ¼
[f i]
6. mkdir rmdirĿ¼Ïà¹Ø²Ù×÷
mkdir Ŀ¼Ãû
rmdir Ŀ¼Ãû
cd cdÓëĿ¼ÃûÖ®¼ä±ØÐëÓпոñcd / cd .. cd .Èç¹ûÖ±½ÓÊäÈëÃüÁîcd¶ø²»¼ÓÈκβÎÊý½«»Øµ½Õâ¸öÓû§µÄÖ÷Ŀ¼
ÏÔʾµ±Ç°Ä¿Â¼pwd
ls [Ñ¡Ïî] [Ŀ¼»òÎļþ]
a c l
7. rpm -ivh°²×°
rpm -ivh rpmÈí¼þ°üÃû
-i °²×°Èí¼þ -t ²âÊÔ°²×°²»ÊÇÕæµÄ°²×° -p ÏÔʾ°²×°½ø¶È -f ²»¹ÜÈκδíÎó -U Éý¼¶°²×° -v ¼ì²âÌ×¼þÊÇ·ñÕýÈ·°²×°
жÔØ
rpm -e Èí¼þÃû
Àý£º°²×°rpm -ivh software-1.2.3-1.i386.rpm ¶øµ±Ð¶ÔØʱÔòÓ¦Ö´ÐÐ rpm -e software
ÊÇ·ñ°²×°³É¹¦ rpm -qa|grep samba
8. tar -xvzf¸ã¶¨Ê¹ÓÃtar´ò°üµÄÓ¦ÓÃÈí¼þ
tar -zxvf VMwareTools-5.0.0-12124.i386.tar.gz -C /tmp
1 gzip bz2 ¿ÉÒÔÖ´ÐÐtar -xvzf Èí¼þ°üÃû ¾Í¿ÉÒÔÒ»²½Íê³É½âѹÓë½â°ü¹¤×÷£¬Èç¹û²»ÊÇÔòÏÈÓýâѹÈí¼þÔÙÖ´ÐÐtar -xvf ½âѹºóµÄtar°ü½øÐнâ°ü
2 ÔĶÁ¸½´øµÄINSTALLÎļþREADMEÎļþ
3 Ö´ÐÐ./configureÃüÁîΪ±àÒë×öºÃ×¼±¸
4 Ö´ÐÐmakeÃüÁî½øÐÐÈí¼þ±àÒë
5 Ö´ÐÐmake installÍê³É°²×°
6 Ö´ÐÐmake cleanɾ³ý°²×°Ê±²úÉúµÄÁÙʱÎļþ£¬Ò»°ãÀ´ËµLinuxµÄÓ¦ÓÃÈí¼þµÄ¿ÉÖ´ÐÐÎļþ»á´æ·ÅÔÚ/usr/local/binĿ¼Ï£¬Õâ¸öÈí¼þµÄINSTALLºÍREADMEÎļþÒ»°ã¶¼»áÓÐ˵Ã÷
7 жÔØ Í¨³£Èí¼þµÄ¿ª·¢ÕߺÜÉÙ¿¼Âǵ½ÈçºÎжÔØ×Ô¼ºµÄÈí¼þ¶øtarÓÖ½öÊÇÍê³É´ò°üµÄ¹¤×÷ËùÒÔ²¢Ã»ÓÐÌṩÁ¼ºÃµÄжÔØ·½·
Ïà¹ØÎĵµ£º
ÕâÁ½ÌìÔÚ¹¹½¨Ò»¸öÓ¦ÓõÄʹÓÃÓõ½ÁËmaven,ÓÉÓÚprojectºÜ´ó,×ã×ãÓÐ700¶à¸öpom.xmlÎļþ,¸üÓôÃƵÄÊÇÔںܶàpom.xmlÎļþÀﶼµ¥¶ÀÖ¸¶¨ÁË×ÊÔ´¿âµÄurl,ÎÒÐèÒª°ÑÕâЩ×ÊÔ´¿âµÄurlͳһָ¶¨µ½nexus±¾µØÖÐÑë¿â.
ÊÖ¹¤Ò»¸ö¸ö¸ÄÎļþÅäÖÃÓе㲻̫ʵ¼Ê,ËùÒÔgoogleÁËÒ»ÏÂ,ÕÒµ½ÅúÁ¿Ìæ»»ÎļþÄÚÈݵĺ÷½·¨,ÃüÁî½á¹¹ÈçÏÂ:
find -name 'Òª²éÕÒµÄÎ ......
ËùÓеÄÄں˴úÂ룬»ù±¾¶¼°üº¬ÁËinclude/linux/compile.hÕâ¸öÎļþ£¬ËùÒÔËüÊÇ»ù´¡£¬º¸ÇÁË·ÖÎöÄÚºËËùÐèÒªµÄһЩÁбàÒë֪ʶ£¬±¾²©¾Í·ÖÎö·ÖÎöÕâ¸öÎļþÀïµÄ´úÂ룺
#ifndef __LINUX_COMPILER_H
#define __LINUX_COMPILER_H
#ifndef __ASSEMBLY__
Ê×ÏÈÓ¡ÈëÑÛÁ±µÄÊǶÔ__ASSEMBLY__Õâ¸öºêµÄÅжϣ¬Õâ¸ö±äÁ¿Êµ¼ÊÊÇÔÚ±àÒë»ã±à´úÂëµÄÊ ......
1¡¢²é¿´telentÊÇ·ñ°²×°£ºrpm -q
telnet
[root@localhost root]#rpm -qa Linux telnet
Linux telnet-0.17-25
//Linux&n ......
LinuxÉ豸ģÐÍÖ®ttyÇý¶¯¼Ü¹¹·ÖÎö
À´Ô´: ChinaUnix²©¿Í ¡¡ÈÕÆÚ£º 2008.07.25 16:24¡¡(¹²ÓÐ0ÌõÆÀÂÛ) ÎÒÒªÆÀÂÛ
------------------------------------------
±¾ÎÄϵ±¾Õ¾Ô´´,»¶ÓתÔØ!
תÔØÇë×¢Ã÷³ö´¦:http://ericxiao.cublog.cn/
------------------------------------------
Ò»£ºÇ°ÑÔ
TtyÕâ¸öÃû³Æ ......
»ù±¾ÊµÓù¤¾ß£º
ls ÏÔʾÎļþÃû(list)
cat ÏÔʾÎı¾ÎļþÄÚÈÝ
rm [-i] ɾ³ýÎļþ(remove),-i´ò¿ªÑ¡Ïî
less/more ·ÖÆÁÏÔʾÎļþ
hostname ÏÔʾϵͳÃû
Îļþ²Ù×÷£º
cp SOURCEFILE DESTINATIONFILE ¸´ÖÆÎļþcopy
mv OLDNAME NEWNAME ¸ü¸ÄÎļþÃû(move)
lpr [-p] FILEN ......