Thursday, July 29, 2010

For Unix terminal as the user moving



In the Windows operating system, the terminal can also make some simple settings. If you can set the input method of switching health and so on. But in the Windows operating system, this terminal set is very small. In the Unix operating system, you can set the terminal's many features to facilitate users. In fact, if we really want the user, in practical work may have encountered a similar phenomenon. If in some Unix operating systems, use the backspace key to delete a character; but in some operating systems are not. Even in the same version of the shell in the encounter this situation. In fact, this is not a problem with the keyboard, but because of the terminal caused by the personalized settings. Unix Systems Engineer sometimes need to adjust the terminal settings to suit their own work habits. Unix to manage the terminal as a file, so you can set the parameters of its many, basically contains all the features related with the terminal. But the system is not a lot of engineers actually use mainly the following aspects of the content.

1, Ctrl + C key combination can exit the application.

銆??鏃犺鏄疷nix鎿嶄綔绯荤粺涔熷ソ锛屾槸Linux鎿嶄綔绯荤粺涔熷ソ锛屾湁鏃跺?浼氶亣鍒板懡浠ゆ棤娉曞搷搴旂殑鎯呭喌銆傛垨鑰呮暟锛岀敱浜庤繍琛屾椂闂存瘮杈冮暱锛岃秴杩囦簡绯荤粺宸ョ▼甯堢殑蹇嶈?鏃堕棿銆傛鏃讹紝鐢ㄦ埛寰?線鍙互閫氳繃Ctrl+C閿潵涓柇杩涚▼锛屼腑鏂懡浠ょ殑杩愯銆備絾鏄湁浜涚郴缁熷伐绋嬪笀鐢ㄤ笉鎯繖涓粍鍚堥敭銆傜敱浜庡畠浠敤鎯簡寰蒋鐨勪骇鍝併?鍦ㄥ井杞殑璁颁簨鏈垨鑰匴ord绛夌増鏈枃浠朵腑锛岃繖涓懡浠ゆ槸鐢ㄦ潵澶嶅埗鏂囨湰鐨勩?鐜板湪瑕佽浠栦滑鐢ㄦ潵涓柇鍛戒护琛岋紝浠栦滑灏卞鏄撴悶娣枫?涓烘鏈変簺绯荤粺宸ョ▼甯堝氨鍠滄灏嗚繖涓睆骞曞睆钄芥帀銆傚湪Unix绯荤粺涓紝杩欎釜鍔熻兘鏄?杩囧叧閿瓧intr鏉ユ帶鍒剁殑銆傚鏋滆灞忚斀杩欎釜鍔熻兘锛屽彧闇?灏嗚繖涓墽琛宻tty鍛戒护鍗冲彲銆備笉杩囩瑪鑰呭缓璁紝鏈?ソ杩樻槸涓嶇敤鍔ㄨ繖涓叧閿瓧涓哄ソ銆傚惁鍒欑殑璇濓紝鍒扮湡鐨勯渶瑕佹帹鍑烘煇涓繍琛岀潃鐨勫懡浠ゆ椂锛屽氨鏃犳硶寮哄埗閫?嚭浜嗐?

銆??濡傛灉闇?閲嶆柊鍚姩杩欎釜鍛戒护锛屽垯鍙互鍒╃敤stty intr ^c鏉ヨ缃?鍏朵腑Intr鏄帶鍒惰繖涓姛鑳界殑鍏抽敭瀛椼?^涓や釜绗﹀彿鍦ㄧ郴缁熶腑鏈夌壒娈婄殑鍚箟銆傚湪Unix涓璁剧疆鏌愪釜缁堢鍏抽敭瀛楀?锛岃繖閲岄噰鐢ㄧ殑鏄弽鏂滄潌锛岃?涓嶆槸绛夊彿鎴栬?鍏朵粬绗﹀彿銆傚彟澶栵紝^鍦║nix绯荤粺涓彨鍋氳劚瀛楃锛屽畠鍦ㄧ粓绔叧閿瓧璁剧疆鏃朵唬琛ㄧ殑鏄敭鐩樹笂鐨刢trl閿?鏈?悗鐨勫瓧绗琛ㄧず閿洏涓婄殑c閿?涓嶈繃闇?娉ㄦ剰鐨勬槸锛岃繖鏄竴涓皬蹇冪殑瀛楃c锛岃?涓嶆槸澶у啓鐨勩?涓婇潰杩欎釜鍛戒护灏辨槸鍛婅瘔鎿嶄綔绯荤粺锛屽埄鐢–trl+c閿綔涓轰腑鏂鍙枫?

銆??浜屻?鏂囦欢缁撳熬绗﹀彿鐨勮缃?

銆??鍦║nix鎿嶄綔绯荤粺涓紝鏈夋椂鍊欐枃鏈柟寮忕殑鎿嶄綔瑕佹瘮鍥惧舰鍖栨搷浣滃鐨勫銆傜壒鍒槸灏哢nix鎿嶄綔绯荤粺褰撲綔鏈嶅姟鍣ㄦ潵绠$悊锛屽線寰?彧鎶婃搷浣滅郴缁熷惎鍔ㄥ綋鏂囨湰妯″紡锛岃?涓嶆槸褰撳浘褰㈠寲妯″紡銆傝繖涓嶄粎鍙互鎻愰珮鏈嶅姟鍣ㄧ殑宸ヤ綔鏁堢巼锛岃?涓旇繕鏈夊埄浜庢彁楂樺叾绋冲畾鎬с?涓嶈繃濡傛灉閫氳繃鏂囨湰妯″紡鏉ョ鐞嗘搷浣滅郴缁燂紝瀵逛簬涓嶅皯绯荤粺宸ョ▼甯堟潵璇达紝浼氬甫鏉ヤ竴浜涙寫鎴橈紝鍥犱负閮介渶瑕侀?杩囬敭鐩樻潵瀹屾垚鐩稿叧鐨勬搷浣溿?濡傚湪鍐欓偖浠舵椂锛屼竴鍒囨搷浣滈兘鏄潬閿洏鏉ュ畬鎴愩?鍦ㄦ鏃跺氨浼氶亣鍒颁竴涓枃浠讹紝濡備綍鍛婅瘔鎿嶄綔绯荤粺宸茬粡灏嗘枃鏈緭鍏ュ畬鎴愪簡鍛?濡傚湪鏂囨湰妯″紡涓嬩功鍐欓偖浠讹紝闇?鍛婅瘔鎿嶄綔绯荤粺鍙互缁撴潫閿洏鐨勮緭鍏ユ搷浣滀簡銆傚鍦ㄥ埄鐢╟at鍛戒护鍒涘缓鏂囦欢鏃讹紝涔熼渶瑕佹墜宸ョ殑鍛婅瘔鎿嶄綔绯荤粺鏂囦欢鍐呭宸茬粡瀹屾垚浜嗐?姝ゆ椂锛岀郴缁熷伐绋嬪笀鍙互浣跨敤Ctrl+a閿潵鍛婅瘔鎿嶄綔绯荤粺銆傝繖涓姛鑳藉湪绯荤粺涓搴旂殑鍏抽敭瀛楁槸eof(鏂囦欢缁撳熬绗?銆傜郴缁熷伐绋嬪笀濡傛灉鐢ㄤ笉鎯繖涓粍鍚堥敭鐨勮瘽锛屽彲浠ュ埄鐢ㄥ懡浠tty鏉ヨ繘琛屾洿鏀广?濡傛湁浜涗粠寰蒋杞杩囨潵鐨勭郴缁熷伐绋嬪笀锛岀郴缁熶娇鐢–trl+e閿潵琛ㄧず鏂囦欢缁撴潫绗︼紝鑰屼笉鍠滄浣跨敤杩欎釜Ctrl+a閿?鍙兘鍦ㄥ井杞骇鍝佷腑杩欐槸琛ㄧず鍏ㄩ?鐨勫惈涔夊惂)銆傛鏃跺氨鍙互鍒╃敤杩欎釜鍛戒护鏉ヨ繘琛岃缃細stty eof ^e銆傝窡涓婇潰鐨勫懡浠ら潪甯哥浉浼硷紝鍙槸鎵?噰鐢ㄧ殑鍏抽敭瀛椾笉鍚岃?宸层?涓嶈繃鍦ㄦ洿鏀硅繖浜涚粓绔搷浣滅鍙风殑鏃跺?锛岄渶瑕佹敞鎰忛伩鍏嶉噰鐢ㄧ浉鍚岀殑缁堢鎿嶄綔绗﹀彿銆傚惁鍒欑殑璇濓紝鍙兘浼氬嚭鐜颁竴浜涜帿鍚嶅叾濡欑殑闂銆?br />
銆??涓夈?閫?牸閿槸鍚﹀厑璁稿垹闄ゅ瓧绗︺?

銆??鍦ㄩ敭鐩樹笂鏈変袱涓敭锛屼竴涓槸del閿紝鐢ㄦ潵鍚戝悗鍒犻櫎瀛楃銆傚彟澶栦竴涓槸閫?牸閿紝鍒欑敤鏉ュ悜鍓嶅垹闄ゅ瓧绗︺?浣嗘槸鏈夋椂鍊欑郴缁熷伐绋嬪笀浼氬彂鐜伴?鏍奸敭涓嶈兘澶熻捣浣滅敤锛屽叾涓嶈兘澶熷悜鍚庡垹闄ゅ瓧绗︺?鎺掗櫎閿洏鏁呴殰澶栵紝寰?線涔熸槸杩欎釜缁堢閰嶇疆鎵?児鐨勭ジ銆傚湪缁堢閰嶇疆涓湁涓叧閿瓧鍙仛echoe锛屽叾灏辨槸鐢ㄦ潵鎺у埗鏄惁鍏佽浣跨敤閫?牸閿潵鍚戝悗鍒犻櫎瀛楃銆備笉杩囪繖涓缃窡涓婇潰鐨勮缃柟娉曟湁宸紓銆傚鏋滈渶瑕佺鐢ㄨ繖涓姛鑳界殑璇濓紝鍒欓渶瑕佷娇鐢╯tty 鈥揺choe鍛戒护銆傚鏋滈渶瑕佸惎鐢ㄧ殑璇濓紝鍒欓渶瑕佷娇鐢╯tty echoe鍛戒护銆?br />
銆??鍏跺疄锛屽湪Unix鎿嶄綔绯荤粺涓紝璺熺粓绔浉鍏崇殑鍏抽敭瀛椾富瑕佹湁涓ょ琛ㄧ幇褰㈠紡锛屽垎鍒负鍏抽敭瀛?鏌愪釜鍊兼垨鑰呭叧閿瓧(-鍏抽敭瀛?绛夊舰寮忚〃绀恒?杩欎袱绉嶅舰寮忕殑鍏抽敭瀛楀叾鍊艰缃殑鏂瑰紡鏄笉鍚岀殑銆傚涓婇潰鎻愬埌鐨勪腑绔鍙凤紝鍏剁郴缁熶腑鐨勬樉绀烘牸寮忎负鍏抽敭瀛?鏌愪釜鍊肩殑鏍煎紡(intr=^c)銆傚浜庤繖涓牸寮忕殑鍏抽敭瀛楅渶瑕侀噰鐢ㄧ殑鏄痎鐨勮皟鏁存柟寮忥紝鍏跺彲浠ラ噸鏂拌缃姛鑳介敭銆傝?鐜板湪鐨勯?鏍煎姛鑳界殑鍏抽敭瀛椾负echoe锛屽叾鏄剧ず鏍煎紡涓哄叧閿瓧(-鍏抽敭瀛?銆傝繖绉嶅叧閿瓧鍙堝彨鍋氬紑鍏冲叧閿瓧銆備篃灏辨槸璇村叾鍙湁鍚敤鎴栬?绂佺敤銆傝?涓嶈兘澶熶娇鐢ㄥ叾浠栫殑鍐呭鏉ヤ唬鏇裤?瀵逛簬杩欑绫诲瀷鐨勫叧閿瓧锛岃璋冩暣鍏跺?鐨勮瘽锛屼篃鐩稿绠?崟銆傚彧闇?鍒╃敤stty (-)鍏抽敭瀛楃殑褰㈠紡鍗冲彲銆傚鏋滃叧閿瓧鍓嶉潰娌℃湁鍑忓彿鐨勮瘽锛屽垯璇存槑杩欎釜鍔熻兘鏄惎鐢ㄧ殑銆傚鏋滄湁鍑忓彿鐨勮瘽锛屽垯璇存槑杩欎釜鍔熻兘鏄鐢ㄧ殑銆傚鏋滅郴缁熷伐绋嬪笀鍙嶅厛杩欎釜閫?牸閿笉鑳界敤浜嗭紝鍙互鍏堝埄鐢ㄥ懡浠tty 鈥揳鍛戒护鏉ユ煡鐪嬪綋鍓嶇粓绔殑閰嶇疆銆傜壒鍒槸闇?鍏虫敞涓?簺杩欎釜echoe鍏抽敭瀛楋紝鐪嬪叾鍓嶉潰鏄惁鏈夊噺鍙枫?濡傛灉鏈夌殑璇濓紝灏辫〃绀哄綋鍓嶄笉鑳藉鍒╃敤閫?牸閿潵鍚戝墠鍒犻櫎涓?釜瀛楃銆傛鏃剁郴缁熷伐绋嬪笀鍙互鍒╃敤stty echoe鏉ュ惎鐢ㄨ繖涓姛鑳姐?閫氬父鎯呭喌涓嬶紝涓嶉渶瑕佹敞閿?郴缁熸垨鑰呭叧闂綋鍓嶄細璇濊繖涓缃氨浼氱敓鏁堛?涓嶅悓鐨剆hell瀵硅繖涓?鏍奸敭鐨勯粯璁よ缃槸涓嶅悓鐨勩?鎵?互涓轰簡鎿嶄綔鐨勬柟渚匡紝绯荤粺宸ョ▼甯堟湁鏃跺?寰?線闇?璋冩暣杩欎釜閫?牸閿殑鍔熻兘锛屾潵淇濊瘉鍚勪釜鐗堟湰鐨剆hell 閮借兘澶熶娇鐢ㄨ繖涓姛鑳芥垨鑰呯鐢ㄨ繖涓姛鑳姐?

銆??鍥涖?鐢ㄦ埛杈撳叆鐨勫唴瀹逛笉鍥炴樉銆?br />
銆??鍦ㄧ櫥闄哢nix鎿嶄綔绯荤粺鏃?鏂囨湰妯″紡涓?锛岀敤鎴烽渶瑕佽緭鍏ュ笎鎴峰悕涓庡瘑鐮佹墠鑳藉鐧婚檰銆傚綋鐢ㄦ埛杈撳叆瀵嗙爜鏃讹紝鍦ㄥ睆骞曚笂涓嶄細鏈変换浣曠殑鎻愮ず锛岃繛*濂芥帺楗扮鍙烽兘娌℃湁銆傛湁鏃跺?锛岀郴缁熷伐绋嬪笀涓轰簡浼肩殑鑴氭绋嬪簭涔熷彲浠ュ悜杩欎釜鍙d护涓?牱锛屾帴鏀剁敤鎴风殑杈撳叆鑰屼笉鏄皢鍐呭杈撳嚭鍒板睆骞曚笂(鍗崇敤鎴疯緭鍏ョ殑鍐呴儴涓嶅洖鏄惧埌灞忓箷涓?锛屽氨闇?淇敼echo杩欎釜鍏抽敭瀛楃殑鍊笺?涓嶈瑕佹敞鎰忥紝淇敼杩欎釜鍏抽敭瀛楃殑鏃跺?闇?涓夋璧般?绗竴姝ュ皢杩欎釜鍏抽敭瀛楄缃负-echo(琛ㄧず鍚戝瘑鐮侀偅鏍蜂笉鍥炴樉鐢ㄦ埛杈撳叆鐨勫唴瀹?;绗簩姝ヤ笉鍥炴樉鐨勬帴鏀剁敤鎴疯緭鍏ョ殑鍐呭锛屾鏃剁敤鎴风殑浠讳綍杈撳叆涓嶄細鏄剧ず鍒板睆骞曚笂;绗笁姝ュ啀灏嗚繖涓叧閿瓧璁剧疆涓篹cho锛屽嵆鍚庣画鐨勫唴瀹瑰厑璁稿叾鏄剧ず鍦ㄥ睆骞曚笂銆傚洜涓哄湪澶ч儴鍒嗘儏鍐典笅锛岄兘鏄渶瑕佺郴缁熷皢鐢ㄦ埛杈撳叆鐨勭粨鏋滄樉绀哄湪灞忓箷涓婄殑銆傚惁鍒欑殑璇濓紝涓嶈兘澶熶繚璇佺敤鎴疯緭鍏ョ殑鍑嗙‘鎬с?鎵?互锛屽湪浣跨敤瀹屾瘯鍚庯紝涓?畾瑕佽杩欎釜鍏抽敭瀛楄缃负鍘熷厛鐨勫?锛屽嵆鍒╃敤stty 鈥揺cho灏嗚繖涓叧閿瓧璁剧疆鍥炴潵銆傝繖閲宔cho涔熸槸鍒╃敤-鍙锋潵浠h〃鐨勪竴涓叧閿瓧锛屼篃灏辨槸璇磋繖涓姛鑳戒篃鏄竴涓紑鍏冲姛鑳姐?鍦ㄨ缃椂锛岃涔堝叧闂紝瑕佷箞鍚敤銆傝?绗笁绉嶅鐞嗘柟娉曘?涔熷氨鏄锛屽鏋滄兂瑕佺敤鎴疯緭鍏ョ殑鍐呭浠?鍙锋潵浠f浛鐨勮瘽锛屽垯闇?閲囩敤鍏朵粬鐨勬柟寮忋?纭疄锛岃繖涓互*鏄剧ず鐨勬柟寮忚窡缁堢璁剧疆鏃犲叧銆?br />
銆??鍙锛屽湪Unix鎿嶄綔绯荤粺涓紝瀵逛簬缁堢鐨勬帶鍒惰姣斿湪Windows鎿嶄綔绯荤粺寮虹殑澶氥?鏈夋椂鍊欑郴缁熷伐绋嬪笀涓轰簡鍦ㄥ涓搷浣滅郴缁熺増涓繚璇佷竴涓瘮杈冪粺涓?殑缁堢閰嶇疆锛屽線寰?細灏嗚繖浜涘唴瀹瑰啓鎴愪竴涓剼鏈枃浠躲?鐒跺悗閬囧埌涓?釜鏂扮殑shell鏃讹紝浼氬厛涓嶇涓変竷浜屽崄涓?紝鎵ц杩欎釜鑴氭湰銆傚姝わ紝灏卞彲浠ュ疄鐜癠nix缁堢闅忕敤鎴疯?鍔紝鏍规嵁鐢ㄦ埛鐨勬搷浣滀範鎯潵杩涜缁堢閰嶇疆鐨勮皟鏁淬?







相关链接:



Hot Java And JavaScript



quicktime to AVI



Win 7 List, How To Buy The Most Cost-effective?



STORM Teach You To Remove The Stormliv.exe



On the JSP PAGE Jump and forward the request



Catalogs Password Managers



Special Steps: Maneuvers, Decisive Miles



Ipod Touch Video Format



convert flv to AVI



TO prevent the most effective way to Trojan



convert dvd to WMV



Amazon to create "paper" and the next generation of reading



News About Basic Or VB Or VB DotNet



"Cottage XP" NATIONAL dream



Photoshop Mask Analysis



No comments:

Post a Comment