1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Reverse History Search](<https://delaparra-services.nl/knowledge-hub/reverse-history-search>)

  

Category: Keyboard shortcuts 

# Reverse History Search

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Reverse History Search?

 

Reverse History Search: Search backwards through your command history as you type. Saves retyping long commands. Reverse history search finds earlier commands as you type. Press ` Ctrl+R ` in Bash or Zsh, type part of a command, and the most recent match appears. Press ` Ctrl+R ` again for older matches, ` Enter ` to run it, or an arrow key to edit it first.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Reverse History Search

  

### How is Reverse History Search used in practice?

 

It saves retyping long commands, like a Docker command with many options or the exact kubectl command you used last week.

    

### What should you keep in mind with Reverse History Search?

 

Tools like ` fzf ` make it even better, showing an interactive, searchable list of your history. Increase your history size in your shell configuration so useful commands are not forgotten. And be aware that commands with passwords or tokens typed directly end up in your history too. Many shells skip commands that start with a space, which is a handy way to keep such lines out.

 

## At a glance

   CategoryKeyboard shortcuts Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Keyboard shortcuts terms

 

- [Quick Fix / Show Actions](<https://delaparra-services.nl/knowledge-hub/quick-fix-show-actions>) 
- [Quick Open / Go to File](<https://delaparra-services.nl/knowledge-hub/quick-open-go-to-file>) 
- [Rename Symbol](<https://delaparra-services.nl/knowledge-hub/rename-symbol>) 
- [Save All](<https://delaparra-services.nl/knowledge-hub/save-all>) 
- [Search Across Files](<https://delaparra-services.nl/knowledge-hub/search-across-files>) 
- [Select Next Occurrence](<https://delaparra-services.nl/knowledge-hub/select-next-occurrence>)

 

[All terms starting with R](<https://delaparra-services.nl/knowledge-hub#letter-r>)

 

## Skills

 

- ### Editor shortcuts (VS Code / Cursor and Vim)

 

Use when a user asks how to do something faster in VS Code (or Cursor) or Vim, asks what a keyboard shortcut does (e.g. Ctrl+D, Ctrl+Shift+P, F12, gg, dd, yy, ciw, :wq), wants to customise keybindings, or is stuck in Vim. Gives the correct shortcut for their operating system and can write keybindings.json entries.

 [View skill](<https://delaparra-services.nl/skills/editor-shortcuts>) [Download zip](<https://delaparra-services.nl/skills/editor-shortcuts/download>)

 

## Manuals

 

- [Keyboard shortcuts in VS Code and the terminal](<https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code>) 
- [Installing Visual Studio Code](<https://delaparra-services.nl/manuals/visual-studio-code-installeren>)

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/reverse-history-search)
