Previewing a command from the history list

You can preview a command from the history list without having to re-run it. Before you can do this the EDITOR and VISUAL variables must be set as they are for command line editing.

You can also list commands from the history list using the fc (fix command ) command.

To... Do this

   EMACS		vi

Preview previous command ^P M-k in the list.

Preview next command in ^N M-j the list.

Preview command starting ^R^string M-/^string with string (search forward from previous command).

(search backward from M-?^string command 0).

Preview command containing ^Rstring M-/string string (search forward from previous command).

(search backward from M-?string command 0).


Top document