linuxÏÂÅúÁ¿½¨Ä¿Â¼
1£ºlinuxÏÂÅúÁ¿½«´óдĿ¼»òÎļþÃû¸ÄΪСдÃüÁî
ZIP ÏÈ´ò³É°ü£¬ZIP -r A A/*£¬ÔÙUNZIP -LL A B (A/*±íʾAĿ¼ÏµÄËùÓÐÎļþ)£¨AºÍB¶¼Îª.zipÎļþ,-LL ±ä´óдΪСдµÄ²ÎÊý£©
Ôò£¬A°üÀïµÄ´óдĿ¼ºÍÎļþÃûÈ«¸Ä³ÉB°üÀïµÄСдĿ¼ºÍÎļþÃû£¬AÓëBÀïµÄÄÚÈÝÏàͬ.
£¨²éϽ«Ð¡Ð´¸Ä³É´óд£©
2£ºÅúÁ¿½¨Ä¿Â¼ÃüÁî
mkdir -p A/{1..99}
mkdir -p A/{A..Z}
mkdir -p {a..z}{a..z}
mkdir -p {a..z}{0..9}
3£º½¨Òþ²ØÎļþ
mkdir .A (µãΪÒþ²ØÎļþ±êÖ¾)
cd -- -A £¨¼Ó-- ¿ÉÒÔ½øÈëÒÔÌØÊâ×Ö·ûµÄÎļþ£¬-AΪһ¸öÎļþÃû £©
rm A\* (A*Ϊһ¸öÎļþÃû£¬»òrm £¬Ôòɾ³ýÒÔAΪ¿ªÍ·µÄÎļþ£¬¼Ó\£¬¿ÉÒÔ½«A*תÒåΪA*ÎļþÃû)
cd A\\ (½øÈëĿ¼ÃûΪA\µÄĿ¼)
Ïà¹ØÎĵµ£º
http://blog.chinaunix.net/u1/38994/showart_1132089.html
dzÎölinuxÏÂÊó±êÇý¶¯µÄʵÏÖ
¡¾Ç³ÎölinuxϼüÅÌÉ豸¹¤×÷ºÍ×¢²áÁ÷³Ì¡¿
¶ÔÓÚÊó±êÇý¶¯ºÍÇ°Ãæ·ÖÎö¹ýµÄ¼üÅÌÇý¶¯¶¼Êǹ²ÓÃinputÄ£ÐÍ,
ËùÒÔ,
¶ÔÓÚʼþÉϱ¨ºÍ´¦ÀíµÄ·½Ê½¶¼Ã»ÓÐÇø±ð,
Ö»ÊÇmouseÊó±êÇý¶¯µ±Éϱ¨Íêdx,
dy,
left
,
middle,
rightÖ®ºó,
ÐèÒªµ÷ÓÃinput_ ......
LinuxÐźżò½é ¡¡
1) SIGHUP ±¾ÐźÅÔÚÓû§ÖÕ¶ËÁ¬½Ó(Õý³£»ò·ÇÕý³£)½áÊøÊ±·¢³ö, ͨ³£ÊÇÔÚÖն˵ĿØÖƽø³Ì½áÊøÊ±, ֪ͨͬһsessionÄڵĸ÷¸ö×÷Òµ, ÕâʱËüÃÇÓë¿ØÖÆÖն˲»ÔÙ¹ØÁª. ¡¡¡¡
2) SIGINT ³ÌÐòÖÕÖ¹(interrupt)ÐźÅ, ÔÚÓû§¼üÈëINTR×Ö·û(ͨ³£ÊÇCtrl-C)ʱ·¢³ö ¡¡¡¡
3) SIGQUIT ºÍSIGINTÀàËÆ, µ«ÓÉQUIT×Ö·û(ͨ³£ÊÇCtrl-\ ......
0 ÒýÑÔ
΢´¦ÀíÆ÷µÄ²úÉúΪ¼Û¸ñµÍÁ®¡¢½á¹¹Ð¡ÇɵÄCPUºÍÍâÉèµÄÁ¬
½ÓÌṩÁËÎȶ¨¿É¿¿µÄÓ²¼þ¼Ü¹¹£¬ÕâÑù£¬ÏÞÖÆÇ¶Èëʽϵͳ·¢Õ¹µÄÆ¿¾±¾ÍÍ»³ö±íÏÖÔÚÁËÈí¼þ·½Ãæ¡£¾¡¹Ü´Ó°ËÊ®Äê´úÄ©¿ªÊ¼£¬ÒÑ¾Â½Ðø³öÏÖÁËһЩǶÈëʽ²Ù×÷ϵͳ(±È½ÏÖø
ÃûµÄÓÐVxwork¡¢pSOS¡¢NeculeusºÍWindows
CE)¡£µ«ÕâЩרÓòÙ×÷ϵͳ¶¼ÊÇÉÌ ......
linuxÖжÔ×Ö·û´®µÄ´¦Àí£º
1.×Ö·û´®·Ö¸îÀýÈç AAAAA-BBBBBB °´-·Ö¸îȥǰºóÁ½²¿·Ö
cut £º
[rich@localhost ~]$ str=AAAAA-BBBBBB
[rich@localhost ~]$ echo $str | cut -d "-" -f 1
AAAAA
[rich@localhost ~]$ echo $str | cut -d "-" -f 2
BBBBBB
½âÊÍ£ºA £ü B ½«AÃüÁîµ ......