Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: User's Guide > Chapter 12 Using Terminal

Using a Terminal Window

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The Terminal window provides a means to start other applications, enter UNIX commands, and copy and paste text between and within windows.

To Start Applications in a Terminal Window

  1. Type the command to start the application at the command-line prompt.

The general syntax for starting an application is:

application [ options] &

application

The application name

options

A list of optional information to be passed to the application

&

Indicates that the application runs in the background; that is, you can continue to use the Terminal window while the application is also running

Refer to the man page or other documentation for each application to find the command and options to use for that application.

Example

To start a digital clock from the command line, type

xclock -digital &

To Enter a Command

  1. Type the command and press Return.

Examples

To obtain a list of the files in the current directory, type:

ls [Return]

To obtain a list of the files in the current directory and print it on the default printer, type:

ls | lp [Return]

To Copy and Paste Text

  1. Use mouse button 1 and drag over the text you want to move.

    The text appears highlighted.

  2. Release mouse button 1 after all the text you want is highlighted.

    The highlighted text is copied to an internal clipboard where it is kept until another copy occurs. The text is not removed from your original source.

  3. Click mouse button 2 where you want to insert the text.

    A copy of the contents of the clipboard is pasted at the location you indicated. You can make additional copies by repeating the above steps.

To Resize the Window Contents

When you change the size of a Terminal window, applications running in the window may not know about the resizing. Use this procedure to resize the application's output.

  1. To resize the window contents, type the following at the command-line prompt:

    eval `resize`

Note that resize is enclosed within a set of single close quotation marks rather than double quotation marks.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.