澶辨晥閾炬帴澶勭悊 |
The Linux Command Line 鐨勪腑鏂囩増 PDF 涓嬭澆
鏈珯鏁寸悊涓嬭澆錛?/strong>
閾炬帴錛?a target="_blank">https://pan.baidu.com/s/1OwlJtrVTQvomMfg5HylRZw
鎻愬彇鐮侊細(xì)dbnb
鐩稿叧鎴浘錛?/strong>
![]()
涓昏鍐呭錛?/strong>
There is an old joke about a visitor to New York City asking a passerby for directions to the city’s famous classical
music venue:
Visitor: Excuse me, how do I get to Carnegie Hall?
Passerby: Practice, practice, practice!
鏈夆紑涓彜飩肩殑絎戣瘽錛岃鏄紑涓湪綰界害鐨勬父瀹㈠悜?zhàn)q忊紙鎵撳惉榪欏駭鍩庡競(jìng)涓憲鍚嶅彜鍏糕境涔愬満棣嗙殑飩呭悜錛?/div>
娓稿錛?璇烽棶餳€涓嬶紝鎴戞€庢牱鍘誨崱鍐呭熀餼充箰餳ゅ巺錛?/div>
餼忊紙錛?緇冧範(fàn)錛岀粌涔?fàn)锛尵l冧範(fàn)!
Learning the Linux command line, like becoming an accomplished pianist, is not something that we pick up in an
afternoon. It takes years of practice. In this chapter, we will introduce the vi (pronounced “vee eye”) text editor,
one of the core programs in the Unix tradition. vi is somewhat notorious for its difficult user interface, but when
we see a master sit down at the keyboard and begin to “play,” we will indeed be witness to some great art. We
won’t become masters in this chapter, but when we are done, we will know how to play “chopsticks” in vi.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
瀛︿範(fàn) Linux 鍛戒護(hù)餼忥紝灝卞儚瑕佹垚涓衡紑鍚嶉€犺寰堟繁鐨勯挗鐞村餳€鏍鳳紝瀹冧笉鏄垜浠紑涓嬪崍灝辮兘瀛︿細(xì)鐨勬妧鑳姐€傝繖闇€瑕?緇忓巻餳忓勾鐨?/div>
鍕よ嫤緇冧範(fàn)銆傚湪榪欌紑绔犱腑錛屾垜浠皢浠嬬粛 vi錛堝彂?zhàn)q?ldquo;vee eye”錛夆絺鏈紪杈戝櫒錛屽畠鏄?Unix 浼犵粺涓牳餳肩▼搴忎箣餳€銆?vi 鍥犲畠闅鋸餞
鐨勨餞鎴風(fēng)晫餼澆鏈夌偣澹板悕鐙艱棄錛屼絾鏄綋鎴戜滑鐪嬪埌餳€浣嶁激甯堝潗鍦ㄩ挗鐞村墠寮€濮嬫紨濂忔椂錛屾垜浠殑紜垚浜?浼熲激鑹烘湳鐨勨粎璇佲紙銆傝櫧
鐒舵垜浠湪榪欌莖涓嶈兘鎴愪負(fù) vi 餳ゅ笀錛屼絾鏄綋鎴戜滑瀛﹀畬榪欌紑绔犲悗錛?鎴戜滑浼?xì)鐭ラ亾鎬庢牱鍦?vi 涓脊濂忓儚“Chopsticks”閭f牱鐨勯挗鐞?/div>
餳╁搧銆?/div>
Why We Should Learn vi
涓?浠€ 涔?鎴?浠?搴?璇?瀛?涔?vi
In this modern age of graphical editors and easy-to-use text-based editors such as nano, why should we learn vi?
There are three good reasons:
鍦ㄧ幇鍦ㄨ繖涓浘褰㈠寲緙栬緫鍣ㄥ拰鏄撲簬浣庫(kù)餞鐨勫熀浜庘絺鏈紪杈戝櫒鐨勬椂浠o紝飩愬璇?nano錛屼負(fù)浠€涔堟垜浠繕搴旇瀛︿範(fàn) vi 鍛紵 涓嬧警鏈?/div>
涓変釜鍏呭垎鐨勭悊鐢憋細(xì)
vi is always available. This can be a lifesaver if we have a system with no graphical interface, such as a remote
server or a local system with a broken X configuration. nano, while increasingly popular is still not universal.
POSIX, a standard for program compatibility on Unix systems, requires that vi be present.
vi 寰堝緋葷粺閮介瑁呫€傚鏋滄垜浠殑緋葷粺娌℃湁鍥懼艦鐣屸警錛屸綈飩呰餳€鍙拌繙绔湇鍔″櫒鎴栬€呮槸餳€涓?X 閰嶇疆鎹熷潖浜?jiǎn)鐨勬湰鍦熬p葷粺錛?/div>
閭d箞 vi 灝辨垚浜?jiǎn)鎴戜滑鐨勬晳鏄熴€傝櫧鐒?nano 閫愭笎嫻佲緩璧鋒潵錛屼絾鏄畠 榪樻病鏈夋櫘鍙?qiáng)銆侾OSIX錛岃繖濂?Unix 緋葷粺涓▼搴忓吋瀹圭殑
鏍囧噯錛屽氨瑕佹眰緋葷粺瑕侀瑁?vi銆?br />
|