Updated on 2024-11-29 GMT+08:00

Redis Shortcut Keys

Table 1 describes the shortcut keys supported by the redis-cli client.

Table 1 redis-cli shortcut keys

Keyboard shortcuts

Description

Ctrl-c

Exits redis-cli.

Ctrl-h

Deletes the letter where the cursor is located. This key is the same as the Delete key.

Ctrl-d

Delete the letter on the right of the cursor.

Ctrl-t

Moves the cursor one letter backward.

Ctrl-b

Moves the cursor one character to the left.

Ctrl-f

Moves the cursor one character to the right.

Ctrl-p

Goes to the previous history record.

Ctrl-n

Goes to the next history record.

Ctrl+u

Deletes the current line.

Ctrl+k

Deletes all letters on the right of the cursor.

Ctrl+a

Goes to the beginning of a line.

Ctrl+e

Goes to the end of a line.

Ctrl+l

Clear

ESC+ [ + A

Goes to the previous history record.

ESC+ [ + B

Goes to the next history record.

ESC + [ + C

Moves the cursor backward.

ESC + [ + D

Moves the cursor forward.

ESC + [ + H

Moves the cursor to the beginning of a line.

ESC + [ + F

Moves the cursor to the end of a line.