Next | Prev | Up | Top | Contents | Index

Korn Shell Shortcuts

The Korn shell was developed to provide the best features of both the C shell and the Bourne shell. The /bin/ksh program provides the ease of shell programming found in the Bourne shell, along with the job control, history mechanism, filename completion, and other features found in the C shell. This shell has changed many of the ways these features are implemented, and also provides improved command line editing facilities. See the ksh(1) reference page for complete information on this shell. Useful features include:

Emacs Editing

This mode is entered by enabling either the emacs or gmacs option. To edit, the user moves the cursor to the point needing correction and then inserts or deletes characters or words as needed as if the command line were a text file being edited using Emacs. All edit commands operate from any place on the line (not just at the beginning).

vi Editing

To enter this mode, enable the vi option. There are two typing modes in this option. Initially, when you enter a command you are in the input mode. To edit, the user enters control mode by typing ESC, moves the cursor to the point needing correction, then inserts or deletes characters or words as needed as if the command line were a text file being edited using vi.

job control

Lists information about each given process (job) or all active processes if the job argument is omitted. The -l flag lists process ID numbers in addition to the normal information. The -n flag only displays jobs that have stopped or exited since last notified. The -p flag causes only the process group to be listed. See the ksh(1) reference page for a description of the format of the job argument.

The bg command puts each specified process into the background. The current process is put in the background if job is not specified.

The fg command brings each process specified to the foreground. Otherwise, the current process is brought into the foreground.


Next | Prev | Up | Top | Contents | Index