sh-posix.1 (2010 09)

s
sh-posix(1) sh-posix(1)
^B Move cursor backward (left) one character.
M-b Move cursor backward one word.
^A Move cursor to start of line.
^E Move cursor to end of line.
^]char Move cursor forward to character char on current line.
M-ˆ]char Move cursor backward to character char on current line.
^XˆX Interchange the cursor and mark.
erase Delete previous character. The erase character is user-definable with the
stty
command; it is usually set to ˆH. The system default is
#.
^D Delete current character.
eof Terminate the shell if the current line is null. The eof character is user-definable
with the
stty command; it is usually set to
ˆD. The system default is ˆD.
M-d Delete current word.
M-ˆH Delete previous word (meta-backspace).
M-h Delete previous word.
M-ˆ? Delete previous word (meta-delete). If your interrupt character is
ˆ? (DEL, the
default), this command will not work.
^T In emacs mode, transpose current character with next character. In gmacs mode,
transpose two previous characters.
^C Capitalize current character.
M-c Capitalize current word.
M-l Change the current word to lowercase.
^K Delete from the cursor to the end of the line. If preceded by a numerical parameter
whose value is less that the current cursor position, then delete from the given posi-
tion up to the cursor. If preceded by a numerical parameter whose value is greater
than the current cursor position, then delete from the cursor up to the given posi-
tion.
^W Kill from the cursor to the mark.
M-p Push the region from the cursor to the mark on the stack.
kill Kill the entire current line. If two kill characters are entered in succession, all sub-
sequent consecutive kill characters cause a line feed (useful when using paper ter-
minals). The kill character is user-definable with the
stty command; it is usually
set to ˆX or ˆU. The system default is @.
^Y Restore last item removed from line (yank item back to the line).
^L Line feed and print current line.
^@ Set mark (null character).
M- Set mark (meta-space).
^J Execute the current line (newline).
^M Execute the current line (return).
^P Fetch previous command. Each time ˆP is entered, the previous command in the
history list is accessed.
^N Fetch next command. Each time ˆN is entered the next command in the history list
is accessed.
M-< Fetch the least recent (oldest) history line.
M-> Fetch the most recent (youngest) history line.
^Rstring Reverse search history for a previous command line containing string . If a parame-
ter of zero is given, the search is forward. string is terminated by a return or
22 Hewlett-Packard Company 22 HP-UX 11i Version 3: September 2010