An introduction to the OS X Terminal介紹了向OS X的終端

by Ross McKillop on October 5, 2006 Ross麥基洛普 2006年10月5日

陸委會

Straight from the horse’s mouth -直接從馬的嘴- Apple says蘋果稱 this of the Terminal:這該碼頭:

“UNIX users will feel at home in Darwin, the robust BSD environment that underlies Mac OS X. That environment is accessible at any time from the Terminal application.” “ UNIX用戶將賓至如歸的感覺在達爾文,強勁的BSD的環境, Mac OS X之下的環境,是方便在任何時間從該終端的應用” 。

OK - what about non-UNIX users?確定-什麼非U NIX用戶?

Background/About the Terminal背景/約終端
Launch發射
Customize自定義
Commands命令


History/Background 歷史/背景

Yes, the Terminal is your gateway to the BSD core that is OS X. But what on earth does that mean?是的,終端是您通往BSD的核心是OS X的,但在地球上是否意味? Here’s the best way I can think of to explain it.這裡的最佳方法,我能想到的解釋。

The Finder, that “thing” you use to launch programs and sort/re-name/move/delete files - is really just a graphical version of the Terminal. Finder中, “事”您使用的發射程序和排序/重新命名/移動/刪除文件-是真的只是一個圖形版本的終端。 The Terminal is a “text” version of the Finder - and a much more powerful one at that.該碼頭是一個“文本”版本的搜索器-和一個更強大的一個。 When you open programs using the Finder (by double-clicking them) they just open.當您打開的程序使用Finder中(雙擊) ,他們只需打開。 With Terminal, you can launch programs and issue additional parameters - like ‘open x program and then have it open a file’.與碼頭,您可以啟動程序和問題,額外的參數-像『開放x程序,然後它打開一個文件' 。

To be slightly more accurate, the Terminal is actually an interface to a “shell”.要稍微更準確,碼頭,其實是一個接口一個“空殼” 。 The default shell on the Mac is named bash .默認的shell在Mac命名的bash A shell is the program that reads your text, splits the command (launch x program) from the parameters (open a file when x launches) and then executes them.一殼牌是程式讀取您的文字,分裂命令( x發射計劃)由參數(打開一個文件,當x發射) ,然後執行它們。

Launch 發射

Opening the Terminal is pretty easy.開放碼頭是相當容易。 Open a Finder window, select Applications, then Utilities, and finally double-click the Terminal.打開一個Finder窗口,選擇應用程序,然後公用事業,最後雙擊碼頭。

該OSX上碼頭

Yep - that’s the Terminal. yep -的終端。 Pretty dull at first sight.相當沉悶,在第一在望。

該OSX上碼頭

You may want to make it a bit easier to get to the Terminal in the future.你可能希望把它變成有點容易獲得到終端在未來的。 Right-click (or ctrl-click for you one-button mouse folks) and select Keep in Dock .右鍵單擊(或Ctrl點擊為您一鍵滑鼠的鄉親) ,並選擇保持在船塢 Now it’s just one quick click away.現在,這只是一個快速按一下即可。

該OSX上碼頭

Customize 自定義

Now lets make the Terminal at least a bit more visually appealing.現在讓,使終端,至少多一點視覺上的吸引力。 Select Terminal and then Window Settings… from the drop-down menu.選擇碼頭 ,然後設置窗口… …從下拉式選單。

該OSX上碼頭

Select the drop-down menu (probably set to Shell by default) and select Display選擇下拉式選單(可能設定為殼默認) ,並選擇顯示

該OSX上碼頭

First select your cursor style.首先,請選擇您的光標移動的風格。 I prefer Underline, but different strokes for different folks, right?我寧願強調,但不同的招不同的鄉親,對不對? Now click the Set Font… button現在點擊設置字體…按鈕

該OSX上碼頭

The Font window should be a familiar one. 字體窗口應該是一個熟悉的一個。 Select your favorite font, size etc. Close the window when you’re done.選擇您最喜愛的字體,大小等,關閉窗口時,即可大功告成。

該OSX上碼頭

Now select Color from the drop down menu現在選擇顏色從下拉菜單

該OSX上碼頭

Mess around with the color selections and pick one that suits you.一塌糊塗,與周圍的顏色選擇,並挑選一個適合您的。 Choose a background color (if you want).選擇背景顏色(如果您想要) 。 I very much like to have a transparent Terminal, so give it a try.我非常希望有一個透明的終端,所以給它一個嘗試。 Move the slider over until you’re happy with the style.將滑塊移到超過直到您滿意與作風。

該OSX上碼頭

Finally, select Window from the drop-down menu最後,專責窗口,從下拉式選單

該OSX上碼頭

Here you can specify custom dimensions for your Terminal.在這裡,您可以指定自訂尺寸為您的終端。 Again, try different combinations until you find one you like.再次,嘗試不同的組合,直到您找到您喜歡的。 You can also change the default “name” that appears in the Terminal title menu.您也可以更改默認的“名稱”中出現的終端標題菜單。 I also like to de-select TTY Name and Active Process Name.我也想取消選擇聽障的名稱和活動過程的名稱。

Feel free to check out the other options from the drop-down menu.覺得免費檢查的其他選項,從下拉式選單。 When you’re ready, click the Use Settings as Defaults so that each time you open Terminal, it has your new custom look and feel.當您準備好,請點擊使用默認設置 ,使每一個時間,您打開終端,它新的自定義外觀和感覺。

該OSX上碼頭

該OSX上碼頭
Click to enlarge點擊放大

Commands 命令

There are a lot of commands.有很多的命令。 Far too many to outline here.到目前為止,太多綱要在這裡。 http://www.ss64.com/bash/ has a huge list.擁有龐大的名單。 Something to keep in mind - Terminal is a bit more unforgiving than Finder.一些請記住, -終端是一個無情的多一點,比查找。 You can accidentally delete, change, and/or otherwise mess things up pretty quickly (esp. if you’re playing around with the你可以不小心刪除,變更和/或否則一塌糊塗,東西相當迅速( English )如果您玩弄與 sudo sudo的 command).命令) 。 With that said, once you get used to the Terminal, you’ll wonder how you lived without it.與說,一旦你習慣到終端,您不知道你如何生活沒有它。 An added bonus - once you do get used to using it, you’ll find that ‘learning’ a Linux or Unix based Operating System is much, much easier.另外一個好處-一旦你做習慣使用它,您會發現學習' L inux或基於U NIX操作系統是不多,容易得多。

Related Posts: 相關文章:
  • How to remove the scroll bar from OS X’s Terminal如何刪除捲軸從OS X的終端
  • How to blurminal your OS X Terminal如何blurminal您的OS X的終端
  • How to kill a program or process in OS X如何殺人的程序或進程,在OS X中
  • How to create a “Quake-style” console in OS X如何創造一個“地震式”的控制台在OS X中
  • How to run Dashboard Widgets on your OS X Desktop如何運行的Dashboard構件就會在您的OS X桌面
  • { 1 trackback } 1跟踪

    How to remove the scroll bar from OS X’s Terminal - Simplehelp如何刪除捲軸從OS X的終端-s implehelp
    02.15.07 at 1:25 am 02.15.07在上午01時25分

    { 1 comment… read it below or 1條評論…閱讀下面或 add one新增1 }

    1 1 Jud Ryckman jud ryckman 02.21.07 at 9:31 am 02.21.07在上午09時31分

    Sweet!甜的! Thanks, I definitely overlooked these options for setting the window options.感謝,我一定忽略了這些選項的設置窗口選項。

    Leave a Comment留下意見

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些HTML標記和屬性:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em>的<i> <q cite=""> <strike>的<strong>