Repeating Commands in Bash

Written By
SH
Sandra Henry-Stocker
Dec 4, 2009

[ Thanks to Amy
Bennett
for this link. ]

“Whether you page back through your history with
repetitions of up arrow presses or reuse commands by typing an
exclamation point followed by the first few letters of the
previously entered command, you can work faster and feel less
annoyed by these useful time saving features of the Unix shell.

“Bash, however, has a feature called “history mode” that takes
your reuse of previously entered commands to new heights. You enter
history mode by typing ^r (hold control key and press the letter
“r”). You will see something like this:

(reverse-i-search)`’:


Complete Story

SH

Sandra Henry-Stocker

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.