View and Edit Within the Command History

You can copy text from the Command History to repeat commands.

You can expand and collapse the Command History in the Command Line using the indicated control.

Within the Command History, use the Up Arrow and Down Arrow keys, the scroll bar, or other scrolling method to locate and then highlight previously entered commands, system variables, and text.

By default, pressing Cmd-C copies highlighted text to the Clipboard. Pressing Cmd-V pastes text from the Clipboard to the Command Line.

To copy all the text in the Command History to the Clipboard, right-click and select Copy History from the shortcut menu, or enter the COPYHIST command. To save commands automatically to a log file starting with the next command, enter the LOGFILEON command.