Search Commands

Keystrokes

Command name

Description

C-s

isearch-forward

Incremental search forward.

C-r

isearch-backward

Incremental search backward

M-%

query-replace

Search and replace.

C-M-s Enter

re-search-forward

Regular expression search forward.

C-M-r Enter

re-search-backward

Regular expression search backward

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.