# Command Line Manual

Command Line allows commands to be run from a panel, and includes quick access to a file browser and command history.

2005
Davyd Madeley
2004
Angela Boyle
2002
2003
2004
Sun Microsystems
1998
Oliver Maruhn
1998
Dan Mueth
2002.
Sun Microsystems
2007.
류창우 (cwryu@debian.org)
그놈 문서 프로젝트

본 설명서는 프리 소프트웨어 재단(FSF)에서 발행한 GNU 자유 문서 라이센스(GFDL) 버전 1.1 이상의 조항에 따라 변경 불가 부분, 앞 표지 텍스트 및 뒷 표지 텍스트를 제외하고 복사, 수정 및/또는 배포할 수 있습니다. GFDL의 사본은 링크 또는 본 설명서와 함께 배포된 COPYING-DOCS 파일에서 찾을 수 있습니다.

본 설명서는 GFDL에 따라 배포된 그놈 설명서 컬렉션의 일부입니다. 본 설명서를 컬렉션과 별도로 배포하려는 경우에는 라이센스 조항 6에 따라 라이센스 사본을 설명서에 추가하면 됩니다.

기업의 제품과 서비스를 식별하기 위해 사용된 많은 이름은 상표로 간주됩니다. 그놈 문서에 사용된 이름과 그놈 문서 프로젝트의 구성원은 해당 상표로, 모두 대문자로 표시되거나 첫 글자가 대문자로 표시되어 있습니다.

문서 및 수정판은 다음 GNU 자유 문서 라이센스의 조항에 따라 제공됩니다.

1. 문서는 "있는 그대로"로 제공되며 상품성, 특정 목적에의 적합성 또는 준수에 대한 보증을 비롯한 일체의 명시적 또는 암시적인 보증을 제한 없이 부인합니다. 문서 및 수정판의 품질, 정확성 및 성능에 대한 책임은 전적으로 사용자에게 있습니다. 문서 또는 수정판에 대한 오류를 입증하려면 사용자(원저작자, 저작자 또는 배포자 아님)는 필요한 서비스, 수리 및 수정 비용을 부담해야 합니다. 본 보증 부인은 라이센스의 필수 부분에 해당합니다. 본 보증 부인을 따르지 않는 모든 문서나 수정판은 사용할 수 없습니다.

2. 또한 불법 행위(부주의 포함), 계약 또는 직접, 간접, 특별, 부수적 및 파생적인 모든 손해(영업권 손실, 작업 중지, 컴퓨터 오류 및 고장 또는 본 문서나 수정판의 사용으로 인해 발생하거나 관련된 기타 모든 손실 및 이러한 손실 가능성에 대해 미리 공지한 경우에도 제한되지 않음)에 대해서는 어떠한 상황이나 법률적인 이론 하에서도 본 문서 또는 수정판의 저작자, 원저자, 모든 배포자 또는 공급자는 책임을 지지 않습니다.

Sun
그놈 문서 팀
Sun Microsystems
Oliver
Maruhn
그놈 문서 프로젝트

    oliver@maruhn.com

Dan
Mueth
그놈 문서 프로젝트

    d-mueth@uchicago.edu

Angela
Boyle
그놈 문서 프로젝트
Davyd
Madeley
그놈 프로젝트

    davyd@madeley.id.au

버전 2.12
2005년 9월

Davyd Madeley

버전 2.10
2005년 3월

Davyd Madeley

버전 2.8
2004년 9월

Angela Boyle

그놈 문서 프로젝트

Command Line Applet Manual V2.7
2004년 8월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.6
2003년 9월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.5
2003년 8월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.4
2003년 4월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.3
2003년 1월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.2
2002년 8월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.1
2002년 7월

Sun Microsystems

그놈 문서 프로젝트

Command Line Applet Manual V2.0
2002년 3월

Sun Microsystems

그놈 문서 프로젝트

Mini-Commander Applet Manual
1998

Oliver Maruhn oliver@maruhn.com

그놈 문서 프로젝트

Dan Mueth d-mueth@uchicago.edu

그놈 문서 프로젝트

This manual describes version 2.12 of Command Line.

## 피드백

To report a bug or make a suggestion regarding the Command Line applet or this manual, follow the directions in the GNOME Feedback Page.

## 소개

### Command Line

Shows Command Line.

The Command Line provides a command line that you can use within any panel on the desktop.

Command Line contains the following interactive elements:

Entry field

  You can enter commands, macros, and programs in the entry field.

Browser button — the bullet

  You can use the Browser button to look through your file system for programs. A solid-circle icon identifies the Browser button.

History button — the down arrow

  You can use the History button to recall previous commands. A down-arrow icon identifies the History button.

### Features

History list of previously executed commands

  You can execute commands directly from the history list display. You can also cycle the history list contents through the entry field to display and then execute a command. A vertical scrollbar appears when more than 20 commands are in the history list. See for more information.

History-based auto completion function

  Command Line uses the history-based auto completion function to complete commands in the entry field. This function compares the contents of the entry field with the history list. If Command Line finds a match then the applet completes the command. See the note in for more information.

User-requestable command completion function

  This command completion function compares character strings in the entry field with commands in the user path. The command completion function is useful if you do not know the exact character sequence or spelling of a command. After you type the first few letters of the command name, press the Tab key. If Command Line recognizes the character sequence as unique, then the applet completes the command name. See for more information.

Macro facility

  The macro facility provides up to 99 shortcut commands. In addition to predefined commands you can create your own commands for use with Command Line. See for more information.

### To Add Command Line to a Panel

To add Command Line to a panel, right-click on the panel, then choose Add to Panel. Select Command Line in the Add to the panel dialog, then click OK.

## Running Commands

### To Run a Command From the Entry Field

To run a command from the entry field, perform the following steps:

1. Type the command in the entry field.

   To instruct Command Line to try to complete the command name, press the Tab key.

2. Type the command-line options, if any, in the entry field.

3. Press Return.

If the command you entered could not be run, the computer will emit a single warning beep and the applet will indicate the command could not be run by showing a question mark (?) before the command. Check that you specified the command correctly. Clicking on the command line will cause the question mark to automatically disappear.

If the auto completion option is selected, Command Line searches for a match in the history list during steps 1 and 2. See for more information.

### History-based auto completion

You can enable or disable this option under the Preferences menu in the General tab under Auto Completion. Select Enable history-based auto completion to instruct Command Line to compare the entry field with the history list, and complete commands when there is a match.

If the auto completion option is selected, Command Line searches for a match in the history list during steps 1 and 2 in . If there is a match in the history list, Command Line completes the command. To accept the command, press Return. If you do not want to accept the command, type more characters in the entry field.

### To Run a Program From Your File System

Click on the Browser button to display the file system, then double-click on the program you want to run.

You can use Command Line to run scripts, execute commands, or run other programs from your file system.

### To Run a Previous Command, Macro, or Program From the History List

You can run a previously executed command, macro, or program from the history list in one of the following ways:

- Click on the History button to display the history list. Click on a history list item to run the command, macro, or program that you require.

- Click on the entry field, then use the keyboard up and down arrows to cycle through the history list. Press Return to run a specific command, macro, or program when the history list item you want is displayed in the entry field.

#### History-based auto completion

You can enable or disable this option under the Preferences menu in the General tab under Auto Completion. Select Enable history-based auto completion to instruct Command Line to compare the entry field with the history list, and complete commands when there is a match.

## Using Shortcuts or Macros

The macro facility provides up to 99 shortcut commands. In addition to predefined commands you can create your own commands for use with Command Line.

### To Run a Macro From the Entry Field

To run a macro that is defined in the Command Line list, type the macro in the entry field, then press Return.

The function also works for macros.

The following list shows some examples of Command Line macros:

`http://` or `www.` | Anything starting with `http://` or `www.` will be treated as a URL and loaded in your web browser.
`ftp://` or `ftp.` | Anything starting `ftp://` or `ftp.` will be treated as a URL and loaded in your default FTP software.
`dictionary:` | Use `dictionary:` to look up a word using GNOME Dictionary.
`google:` | Use `google:` to search for something using the Google search engine.
`av:` | Use `av:` to search for something using the Altavista search engine.
`yahoo:` | Use the `yahoo:` macro to search for things using the Yahoo search engine.
`fm:` | Use `fm:` to search for packages in the Freshmeat package database.

### Customizing Your Macros

#### Configuring Macros

Configuring Macros

This tabbed section contains a list of macros that you can use with Command Line. The list contains the following information:

- A list of UNIX regular expressions in the Pattern column.

  A regular expression is a pattern of characters or numbers that you use to match strings. See the `regex` man page for further information on how to construct a regular expression.

- A list of commands in the Command column.

  A command executes if the corresponding pattern successfully matches the text that you type into the entry field. The macros are commands that can take parameters parsed by the regular expression.

To add a new macro, click on the Add Macro button. To delete a macro, select the macro, then click on the Delete Macro button.

## Customizing the Appearance

### Preferences

Preferences Dialog To configure the appearance of Command Line, right-click on an area of the applet outside the interactive elements, then choose Preferences and select the General tab.

To move Command Line:

  Select Show handle to attach a handle to the edge of the applet. You can use the handle to drag the Command Line display to any location on your desktop.

To add a border:

  Select this option to show a frame around the Command Line.

To change the width:

  Use the Width . . . pixels spin box to specify the applet width.

To adjust the color theme:

  - Select Use default theme colors to use the colors from the default GNOME theme.

  - Click on the Command line foreground button to select a color for the command line text. This button is unavailable if the Use default theme colors check box is selected.

  - Click on the Command line background button to select a color for the entry field background. This button is unavailable if the Use default theme colors check box is selected.