Danh mục tài liệu

16.6. Terminal Tips and Tricks

Số trang: 2      Loại file: pdf      Dung lượng: 22.83 KB      Lượt xem: 4      Lượt tải: 0    
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

16.6. Terminal Tips and Tricks After youve used Terminal awhile, you may feel ready for a few of these power tips. 16.6.1. Switching Windows You can switch among your various Terminal windows by pressing -1, -2
Nội dung trích xuất từ tài liệu:
16.6. Terminal Tips and Tricks16.6. Terminal Tips and TricksAfter youve used Terminal awhile, you may feel ready for a few of these power tips.16.6.1. Switching WindowsYou can switch among your various Terminal windows by pressing -1, -2, andso on (up to -9). Youll be able to identify the windows easily if you choose toinclude the Command key in the title bars. (Use the Window section of the SettingsPreference pane.)16.6.2. Non-Contiguous SelectionYou can select blobs of text, just as in Microsoft Word or TextEdit. To select a singlerectangle of text anywhere in the window, Option-drag through it. To select multiplerectangles, -drag. You can then copy and paste just those selected blobs.16.6.3. Double-Clickable Unix ToolsMost people are used to thinking of Unix applications as programs you run from withinTerminal. Many, though, appear in the Finder as regular old icons—and you can openthem by double-clicking, just as you would a traditional Mac OS X program. This trickisnt very useful for commands that require flags. But for some, like cal, clicking providesa quick way to run the program, especially if you keep it in your Dock.To double-click a Unix program, though, you first have to find it—and that may not beeasy. Mac OS Xs Unix directory structure is labyrinthine indeed.But why not ask Terminal where the program is? You can do exactly that using the whichcommand: which cal, for example. Terminal responds with /usr/bin/cal, telling you thatcal resides in the /usr/bin directory.To get there, use the open command in Terminal, like this: open /usr/bin. A windowopens in the Finder; inside, youll find the cal icon. Drag the icon to the right side of theDock.From now on, when you click that Dock icon, a new Terminal window opens,automatically displaying this months calendar. Youve shaved several precious secondsoff the time it would have taken you to open iCal.

Tài liệu được xem nhiều:

Tài liệu có liên quan: