1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
|
<?xml version="1.0" encoding="UTF-8"?><!-- -*- indent-tabs-mode: nil -*- -->
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY legal SYSTEM "legal.xml">
<!ENTITY appletversion "2.12">
<!ENTITY applet "Command Line">
<!ENTITY mdash "—">
]>
<!--
(Do not remove this comment block.)
Maintained by the GNOME Documentation Project
http://developer.gnome.org/projects/gdp
Template version: 2.0 beta
Template last modified Feb 12, 2002
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="en">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
<articleinfo>
<title>&applet; Manual</title>
<abstract role="description">
<para>&applet; allows commands to be run from a panel,
and includes quick access to a file browser and command history.</para>
</abstract>
<copyright>
<year>2005</year>
<holder>Davyd Madeley</holder>
</copyright>
<copyright>
<year>2004</year>
<holder>Angela Boyle</holder>
</copyright>
<copyright>
<year>2002</year>
<year>2003</year>
<year>2004</year>
<holder>Sun Microsystems</holder>
</copyright>
<copyright>
<year>1998</year>
<holder>Oliver Maruhn</holder>
</copyright>
<copyright>
<year>1998</year>
<holder>Dan Mueth</holder>
</copyright>
<!-- translators: uncomment this:
<copyright>
<year>2003</year>
<holder>ME-THE-TRANSLATOR (Latin translation)</holder>
</copyright>
-->
<publisher role="maintainer">
<publishername>GNOME Documentation Project</publishername>
</publisher>
&legal;
<authorgroup>
<author>
<firstname>Sun </firstname>
<surname>GNOME Documentation Team</surname>
<affiliation>
<orgname>Sun Microsystems</orgname>
</affiliation>
</author>
<author>
<firstname>Oliver</firstname>
<surname>Maruhn</surname>
<affiliation>
<orgname>GNOME Documentation Project</orgname>
<address><email>oliver@maruhn.com</email></address>
</affiliation>
</author>
<author>
<firstname>Dan</firstname>
<surname>Mueth</surname>
<affiliation>
<orgname>GNOME Documentation Project</orgname>
<address><email>d-mueth@uchicago.edu</email></address>
</affiliation>
</author>
<author>
<firstname>Angela</firstname>
<surname>Boyle</surname>
<affiliation>
<orgname>GNOME Documentation Project</orgname>
</affiliation>
</author>
<author>
<firstname>Davyd</firstname><surname>Madeley</surname>
<affiliation>
<orgname>GNOME Project</orgname>
<address><email>davyd@madeley.id.au</email></address>
</affiliation>
</author>
<!-- This is appropriate place for other contributors: translators,
maintainers, etc. Commented out by default.
<othercredit role="translator">
<firstname>Latin</firstname>
<surname>Translator 1</surname>
<affiliation>
<orgname>Latin Translation Team</orgname>
<address> <email>translator@gnome.org</email> </address>
</affiliation>
<contrib>Latin translation</contrib>
</othercredit>
-->
</authorgroup>
<revhistory>
<revision>
<revnumber>Version 2.12</revnumber>
<date>September 2005</date>
<revdescription>
<para role="author">Davyd Madeley</para>
</revdescription>
</revision>
<revision>
<revnumber>Version 2.10</revnumber>
<date>March 2005</date>
<revdescription>
<para role="author">Davyd Madeley</para>
</revdescription>
</revision>
<revision>
<revnumber>Version 2.8</revnumber>
<date>September 2004</date>
<revdescription>
<para role="author">Angela Boyle</para>
<para role="publisher">GNOME Documentation Project</para>
</revdescription>
</revision>
<revision>
<revnumber>&applet; Applet Manual V2.7</revnumber>
<date>August 2004</date>
<revdescription>
<para role="author">Sun Microsystems</para>
<para role="publisher">GNOME Documentation Project</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.6</revnumber>
<date>September 2003</date>
<revdescription>
<para role="author">Sun Microsystems</para>
<para role="publisher">GNOME Documentation Project</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.5</revnumber>
<date>August 2003</date>
<revdescription>
<para role="author">Sun Microsystems</para>
<para role="publisher">GNOME Documentation Project</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.4</revnumber>
<date>April 2003</date>
<revdescription>
<para role="author">
Sun Microsystems
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.3</revnumber>
<date>January 2003</date>
<revdescription>
<para role="author">
Sun Microsystems
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.2</revnumber>
<date>August 2002</date>
<revdescription>
<para role="author">
Sun Microsystems
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.1</revnumber>
<date>July 2002</date>
<revdescription>
<para role="author">
Sun Microsystems
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
<revision>
<revnumber>Command Line Applet Manual V2.0</revnumber>
<date>March 2002</date>
<revdescription>
<para role="author">
Sun Microsystems
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
<revision>
<revnumber>Mini-Commander Applet Manual</revnumber>
<date>1998</date>
<revdescription>
<para role="author">
Oliver Maruhn <email>oliver@maruhn.com</email>
</para>
<para role="publisher">
GNOME Documentation Project
</para>
<para role="author">
Dan Mueth <email>d-mueth@uchicago.edu</email>
</para>
<para role="publisher">
GNOME Documentation Project
</para>
</revdescription>
</revision>
</revhistory>
<releaseinfo> This manual describes version &appletversion; of &applet;.
</releaseinfo>
<legalnotice>
<title>Feedback</title>
<para>
To report a bug or make a suggestion regarding the &applet; applet or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.
</para>
</legalnotice>
</articleinfo>
<indexterm zone="index">
<primary>Command Line</primary>
</indexterm>
<indexterm zone="index">
<primary>command line applet</primary>
</indexterm>
<!-- ============= Introduction =====-->
<sect1 id="command-line-introduction">
<title>Introduction</title>
<!-- ==== Figure ==================-->
<figure id="applet-fig">
<title>&applet;</title>
<screenshot>
<mediaobject>
<imageobject><imagedata fileref="figures/command-line.png"
format="PNG"/>
</imageobject>
<textobject>
<phrase>Shows &applet;.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para>
The <application>&applet;</application> provides a command line that you can use within any panel on the desktop. </para>
<para>
<application>&applet;</application> contains the following interactive elements: </para>
<variablelist>
<varlistentry>
<term>
<guilabel>Entry</guilabel> field</term>
<listitem>
<para>
You can enter commands, macros, and programs in the <guilabel>entry field</guilabel>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<guilabel>Browser</guilabel> button — the bullet</term>
<listitem>
<para>
You can use the <guibutton>Browser</guibutton> button to look through your file system for programs. A solid-circle icon identifies the <guibutton>Browser</guibutton> button.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<guibutton>History</guibutton> button — the down arrow</term>
<listitem>
<para>
You can use the <guibutton>History</guibutton> button to recall previous commands. A down-arrow icon identifies the <guibutton>History</guibutton> button.
</para>
</listitem>
</varlistentry>
</variablelist>
<sect2 id="features">
<title>Features</title>
<variablelist>
<varlistentry>
<term>History list of previously executed commands</term>
<listitem>
<para>
You can execute commands directly from the history list display. You can also cycle the history list contents through the <guilabel>entry field</guilabel> to display and then execute a command. A vertical scrollbar appears when more than 20 commands are in the history list. See <xref linkend="command-line-histlist"/> for more information.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>History-based auto completion function</term>
<listitem>
<para>
<application>&applet;</application> uses the history-based auto completion function to complete commands in the <guilabel>entry field</guilabel>. This function compares the contents of the <guilabel>entry field</guilabel> with the history list. If <application>&applet;</application> finds a match then the applet completes the command. See the note in <xref linkend="command-line-histlist"/> for more information.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>User-requestable command completion function</term>
<listitem>
<para>
This command completion function compares character strings in the <guilabel>entry field</guilabel> 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 <keycap>Tab</keycap> key. If <application>&applet;</application> recognizes the character sequence as unique, then the applet completes the command name. See <xref linkend="command-line-run"/> for more information.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Macro facility</term>
<listitem>
<para>
The macro facility provides up to 99 shortcut commands. In addition to predefined commands you can create your own commands for use with <application>&applet;</application>. See <xref linkend="command-line-macros"/> for more information.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="command-line-introduction-add">
<title>To Add &applet; to a Panel</title>
<para>To add <application>&applet;</application> to a panel,
right-click on the panel, then choose <guimenuitem>Add to
Panel</guimenuitem>. Select <application>&applet;</application>
in the <application>Add to the panel</application> dialog, then
click <guibutton>OK</guibutton>.</para>
</sect2>
</sect1>
<!-- ================ Running Commands =======-->
<sect1 id="command-line-usage">
<title>Running Commands</title>
<!-- ================ To Run Command =======-->
<sect2 id="command-line-run">
<title>To Run a Command From the Entry Field</title>
<para>
To run a command from the <guilabel>entry field</guilabel>, perform the following steps:
</para>
<orderedlist>
<listitem>
<para>
Type the command in the <guilabel>entry field</guilabel>.
</para>
<para>
To instruct <application>&applet; </application> to try to complete the command name, press the <keycap>Tab</keycap> key.
</para>
</listitem>
<listitem>
<para>
Type the command-line options, if any, in the <guilabel>entry field</guilabel>.
</para>
</listitem>
<listitem>
<para>
Press <keycap>Return</keycap>.
</para>
</listitem>
</orderedlist>
<para>
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.
</para>
<tip>
<para>If the auto completion option is selected, <application>&applet;</application> searches for a match in the history list during steps 1 and 2. See <xref linkend="command-line-histauto"/> for more information.</para>
</tip>
</sect2>
<sect2 id="command-line-histauto">
<title>History-based auto completion</title>
<para>You can enable or disable this option under the <guimenu>Preferences</guimenu> menu in the <guilabel>General</guilabel> tab under <guilabel>Auto Completion</guilabel>. Select <guilabel>Enable history-based auto completion</guilabel> to instruct <application>&applet;</application> to compare the <guilabel>entry field</guilabel> with the history list, and complete commands when there is a match. </para>
<para>If the auto completion option is selected, <application>&applet;</application> searches for a match in the history list during steps 1 and 2 in <xref linkend="command-line-run"/>. If there is a match in the history list, <application>&applet;</application> completes the command. To accept the command, press <keycap>Return</keycap>. If you do not want to accept the command, type more characters in the <guilabel>entry field</guilabel>.
</para>
</sect2>
<!-- ================ To Run Program =======-->
<sect2 id="command-line-filesys">
<title>To Run a Program From Your File System</title>
<para>
Click on the <guibutton>Browser</guibutton> button to display the file system, then double-click on the program you want to run.
</para>
<para>
You can use <application>&applet;</application> to run scripts, execute commands, or run other programs from your file system.
</para>
</sect2>
<sect2 id="command-line-histlist">
<title>To Run a Previous Command, Macro, or Program From the History List
</title>
<para>
You can run a previously executed command, macro, or program from the history list in one of the following ways:
<itemizedlist>
<listitem>
<para>
Click on the <guibutton>History</guibutton> button to display the history list. Click on a history list item to run the command, macro, or program that you require.
</para>
</listitem>
<listitem>
<para>
Click on the <guilabel>entry field</guilabel>, then use the keyboard up and down arrows to cycle through the history list. Press <keycap>Return</keycap> to run a specific command, macro, or program when the history list item you want is displayed in the <guilabel>entry field</guilabel>.
</para>
</listitem>
</itemizedlist>
</para>
<note>
<title>History-based auto completion</title>
<para>You can enable or disable this option under the <guimenu>Preferences</guimenu> menu in the <guilabel>General</guilabel> tab under <guilabel>Auto Completion</guilabel>. Select <guilabel>Enable history-based auto completion</guilabel> to instruct <application>&applet;</application> to compare the <guilabel>entry field</guilabel> with the history list, and complete commands when there is a match. </para>
</note>
</sect2>
</sect1>
<!-- ================ Using Macros =======-->
<sect1 id="command-line-macros">
<title>Using Shortcuts or Macros</title>
<para>
The macro facility provides up to 99 shortcut commands. In addition to predefined commands you can create your own commands for use with <application>&applet;</application>.
</para>
<sect2 id="command-line-runmacro">
<title>To Run a Macro From the Entry Field</title>
<para>
To run a macro that is defined in the <application>&applet;</application> <xref linkend="command-line-prefs-2"/> list, type the macro in the <guilabel> entry field</guilabel>, then press <keycap>Return</keycap>.
</para>
<para>
The <xref linkend="command-line-histauto"/> function also works for macros.
</para>
<para>
The following list shows some examples of <application>&applet;</application> macros:
</para>
<informaltable frame="none">
<tgroup cols="2" colsep="0" rowsep="0"><colspec
colwidth="29.29*"/><colspec colwidth="70.71*"/>
<tbody>
<row valign="top">
<entry><para><userinput>http://</userinput> or
<userinput>www.</userinput></para></entry>
<entry><para>
Anything starting with <userinput>http://</userinput> or
<userinput>www.</userinput> will be
treated as a URL and loaded in your web browser.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>ftp://</userinput> or
<userinput>ftp.</userinput></para></entry>
<entry><para>
Anything starting <userinput>ftp://</userinput> or
<userinput>ftp.</userinput> will be
treated as a URL and loaded in your default FTP software.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>dictionary:</userinput></para></entry>
<entry><para>
Use <userinput>dictionary:</userinput> to look up a word
using <application>GNOME Dictionary</application>.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>google:</userinput></para></entry>
<entry><para>
Use <userinput>google:</userinput> to search for something
using the Google search engine.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>bing:</userinput></para></entry>
<entry><para>
Use <userinput>bing:</userinput> to search for something using
the Bing search engine.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>ddg:</userinput></para></entry>
<entry><para>
Use the <userinput>ddg:</userinput> macro to search for
things using the DuckDuckGo search engine.
</para></entry>
</row>
<row valign="top">
<entry><para><userinput>w:</userinput></para></entry>
<entry><para>
Use <userinput>w:</userinput> to search for articles in
Wikipedia.
</para></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect2>
<sect2 id="command-line-prefs-2">
<title>Customizing Your Macros</title>
<figure id="applet-macro-fig">
<title>Configuring Macros</title>
<screenshot>
<mediaobject>
<imageobject><imagedata fileref="figures/prefs-macros.png"
format="PNG"/>
</imageobject>
<textobject>
<phrase>Configuring Macros</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para>
This tabbed section contains a list of macros that you can use with <application>&applet;</application>. The list contains the following information:
</para>
<itemizedlist>
<listitem>
<para>
A list of UNIX regular expressions in the <guilabel>Pattern</guilabel> column.
</para>
<para>
A regular expression is a pattern of characters or numbers that you use to match strings. See the <command>regex</command> man page for further information on how to construct a regular expression.
</para>
</listitem>
<listitem>
<para>
A list of commands in the <guilabel>Command</guilabel> column.
</para>
<para>
A command executes if the corresponding pattern successfully matches the text that you type into the <guilabel>entry field</guilabel>. The macros are commands that can take parameters parsed by the regular expression.
</para>
</listitem>
</itemizedlist>
<para>To add a new macro, click on the <guibutton>Add Macro</guibutton> button. To delete a macro, select the macro, then click on the <guibutton>Delete Macro</guibutton> button.
</para>
</sect2>
</sect1>
<!-- ============= Appearance ============================= -->
<sect1 id="command-line-apperance">
<title>Customizing the Appearance</title>
<para>
<figure id="applet-prefs-fig">
<title>Preferences</title>
<screenshot>
<mediaobject>
<imageobject><imagedata fileref="figures/prefs.png"
format="PNG"/>
</imageobject>
<textobject>
<phrase>Preferences Dialog</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
To configure the appearance of <application>&applet;</application>, right-click on an area of the applet outside the interactive elements, then choose <guimenuitem>Preferences</guimenuitem> and select the <guilabel>General</guilabel> tab.
</para>
<variablelist>
<varlistentry>
<term>To move &applet;: </term>
<listitem>
<para>Select <guilabel>Show handle</guilabel> to attach a handle to the edge of the applet. You can use the handle to drag the <application>&applet;</application> display to any location on your desktop. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>To add a border:</term>
<listitem>
<para>Select this option to show a frame around the <application>&applet;</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>To change the width:</term>
<listitem>
<para>Use the <guilabel>Width . . . pixels</guilabel> spin box to specify the applet width.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>To adjust the color theme:</term>
<listitem>
<itemizedlist>
<listitem><para>Select <guilabel>Use default theme colors</guilabel> to use the colors from the default GNOME theme.</para></listitem>
<listitem><para>Click on the <guilabel>Command line foreground</guilabel> button to select a color for the command line text. This button is unavailable if the <guilabel>Use default theme colors</guilabel> check box is selected.</para></listitem>
<listitem><para>Click on the <guilabel>Command line background</guilabel> button to select a color for the <guilabel>entry field</guilabel> background. This button is unavailable if the <guilabel>Use default theme colors</guilabel> check box is selected.</para></listitem>
</itemizedlist>
</listitem>
</varlistentry>
</variablelist>
</sect1>
</article>
|