Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Editing command-line commands

Features for editing commands  Top

Data ONTAP provides the following two features to help you when you enter commands on the command line:

Using the history feature  Top

The history feature enables you to scroll through recently entered commands.

To use the history feature, complete the following step.

Step

Action

1

If you are using...

Then...

The cursor keys

Press the Up arrow key to scroll back through commands and the Down arrow key to scroll forward through commands.

Key combinations

Press Ctrl-P to scroll back through commands and Ctrl-N to scroll forward through commands.

Using the command-line editor  Top

The command-line editor enables you to position the cursor anywhere in a partially typed command and insert characters at the cursor position. You can use various key combinations to move the cursor within the same line and edit the command.

To use the command-line editor on the command line, complete the following step.

Step

Action

1

If you want to...

Then...

Move the cursor right one position

Press Ctrl-F or the Right arrow key.

Move the cursor left one position

Press Ctrl-B or the Left arrow key.

Move the cursor to the end of the line

Press Ctrl-E.

Move the cursor to the beginning of the line

Press Ctrl-A.

Delete all characters from the cursor to the end of the line

Press Ctrl-K.

Delete the character to the left of the cursor and move the cursor left one position

Press Ctrl-H.

Delete the line

Press Ctrl-U.

Delete a word

Press Ctrl-W.

Reprint the line

Press Ctrl-R.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments