Использование

Для открытия и закрытия терминалов

Для открытия нового окна терминала:

Choose FileOpen Terminal (or right-click the terminal window and choose Open Terminal).

The new terminal inherits the working directory from its parent terminal.

Для закрытия окна терминала:

Choose FileClose Window.

This action closes the terminal and terminates any subprocesses that you opened from the terminal. If you close the last terminal window, the Terminal application exits.

Для добавления нового окна с вкладками:

Choose FileOpen Tab (or right-click the terminal window and choose Open Tab).

The new terminal inherits the working directory from the previously active terminal.

Для изменения окна терминала

Для того, чтобы скрыть меню:

Choose ViewShow Menubar (or right-click the terminal window and choose Show Menubar).

Для того, чтобы показать или скрыть меню:

Right-click the terminal window and choose Show Menubar from the popup menu.

Для того чтобы показать или спрятать текст заголовка:

Choose ViewShow Toolbars.

Для настройки панели инструментов:

Be sure to show the toolbars first; then choose EditToolbars....

Для того, чтобы показать или скрыть декорации окна:

Choose ViewShow Window Borders.

Для превода терминала в полноэранный режим

Choose ViewFullscreen from the menubar (or right-click the terminal window and choose Fullscreen).

To change the appearance of the terminal window:

See «Настройки» for information about the options that you choose in the Terminal Preferences dialog to change the appearance and behaviour of the terminal windows. For example, you can change the background color or the location of the scrollbar.

Для работы с содержимым окон терминала

To scroll through previous commands and output:

Выполните одно из следующих действий:

  • Use the scrollbar, which is usually displayed on the right side of each terminal window.

  • Press the Shift+Page Up, Shift+Page Down, Shift+Up, Shift+Down, Shift+Home, or Shift+End keys.

  • Use the middle wheel button on your mouse if applicable

Terminal mimics the FreeBSD console when Scroll Lock is pressed. When scroll lock is active, ordinary input and output from the shell is suspended and you can scroll through the history with Shift+Page Up and Shift+Page Down or using the optional scrollbar. Press Ctrl+S to activate the scroll lock and Ctrl+Q to disable it afterwards.

The number of lines that you can scroll back in the terminal window is determined by the Scrollback setting in the General section of the Terminal Preferences dialog.

Для выбора и копирования текста:

Вы можете выбрать текст одним из следующих способов:

  • To select a character at a time, click on the first character that you want to select and drag the mouse to the last character that you want to select.

  • To select a word at a time, double-click on the first word that you want to select and drag the mouse to the last word that you want to select.

  • To select a line at a time, triple-click on the first line that you want to select and drag the mouse to the last line that you want to select.

These actions select all text between the first and last items. For all text selections, Terminal copies the selected text into the clipboard when you release the mouse button. To explicitly copy the selected text, choose EditCopy.

Для вставки текста в терминал:

If you previously copied text to the clipboard, you can paste the text into a terminal by performing one of the following actions:

  • To paste text that you copied by selection only, middle-click at the command prompt. If you do not have a middle mouse button, refer to the X Server documentation for information about how to emulate the middle mouse button. This is equivalent to using the Paste Selection item from Edit menu.

  • To paste text that you explicitly copied, choose EditPaste.

Для того, чтобы перетащить имя файла в окно терминала:

You can drag a file name to a terminal from another application such as a file manager or a web browser. The terminal displays the path and the full name of the URI.

To access a hyperlink:

To access a Uniform Resource Locator (URL) that is displayed in a terminal window, perform the following steps:

  1. Move the mouse over the URL until the URL is underlined.

  2. Right-click on the URL to open the context menu.

  3. Choose Open Link from the context menu to start your preferred Web Browser and display the file located at the URL.

Для создания e-mail:

To compose an email to an address that is displayed in a terminal window, perform the following steps:

  1. Move the mouse over the email address until the email address is underlined.

  2. Right-click on the email address to open the context menu.

  3. Choose Compose Email from the context menu to compose an email in your preferred Mail Reader.

Для изменения заголовка окна

Установить заголовок окна

To change the title of the currently displayed terminal, perform the following three steps:

  1. Choose TerminalSet Title... or double-click the the terminal tab header.

  2. Type the new title in the Title text box. Terminal applies the change immediately.

  3. Click the button Close or press the Return key to close the Set Title dialog.

To reset the terminal title to its default behavior, perform the same three steps as described above, but enter an empty title.

Terminal will substitute these tokens:

  1. %d : имя текущего каталога (коротко).

  2. %D : текущий каталог.

  3. %w : заголовок установлен оболочкой.

  4. %# : идентификатор сессии.

Для восстановления терминала

This section provides some advice if you have problems with terminals.

Для сброса состояния терминала:

Choose TerminalReset.

To reset the terminal and clear the terminal screen:

Choose TerminalReset and Clear.

You can also use the shell commands reset and clear to recover your terminal.

Для настройки панели инструментов

As already mentioned, Terminal includes support for customizable toolbars. The toolbars are disabled by default, you will have to explicitly enable it. Choose ViewShow Toolbars from the menubar to display the toolbars in the current window. If you want to permanently use the toolbars, see «Внешнй вид».

Once the toolbars are shown, choose EditToolbars... from the menubar or right-click one of the toolbars and choose Customize Toolbar... from the context menu. This opens the Toolbar Editor window, which allows you to customize the toolbars in the current terminal window.

Настройка панели инструментов

Just drag an item from the Toolbar Editor window and drop it on a toolbar to add that item to the specific toolbar or drag an item from a toolbar to the Toolbar Editor to remove it from the toolbar. You can add additional toolbars by clicking the button Add a new toolbar and remove toolbars by right-clicking the toolbar and selecting Remove Toolbar from the context menu. You can also choose a different style for a toolbar from the context menu.

Для переключения между различными кодировками

Terminal itself does not (yet) include builtin support for switching encodings on the fly in a terminal session. But since Terminal implements an UTF-8 mode, you can use the Luit application to switch between different character encodings within a terminal session.