• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Michele Neylon :: Pensieri

Michele Neylon :: Pensieri

Technology, Marketing, Domains, Thoughts

How to Find Commands in Your Bash History

September 9, 2007 by Michele Neylon 2 Comments

One of the things that drives me mad is typing long commands or sequences that I need to type over and over again.

Luckily there is a way to search your previous commands in bash.

Simply type CTRL R and you will get a new command prompt. Then start typing part of the command.
To keep looking back through other instances of the command just keep hitting CTRL R.
Once you’ve found the line you want a simple “arrow up” or similar will get you back to your normal command prompt.

Thanks to Paul / Niall for the tip.

Related Posts:

  • fabric-swatch
    I Finally Bought a New Couch!
  • 296745313_1385060475317942_2855314165062019294_n
    Choo Choo Videos
  • Video thumbnail for youtube video tejebqd3-yw
    Anthem Soundtrack at the Games Awards
  • Video thumbnail for youtube video 8s0fdjfbj8o
    Public Speaking Hacked
  • Video thumbnail for youtube video 564u39pjfui
    Thunderstruck Cover
  • Video thumbnail for youtube video 0c4v7fp5gc8
    Sinéad O'Connor Troy

Filed Under: Linux, Techie :: Techno ::, Ubuntu Tagged With: history, Linux, Ubuntu

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight. Read More…

Reader Interactions

Comments

  1. Paul Browne - Technology and People says

    September 13, 2007 at 1:49 pm

    Uber Techie , but very useful. It also works on Cygwin (Linux Console for Windows).
    Been wondering how to do this for a while now …
    Paul

  2. Michele Neylon says

    September 13, 2007 at 2:51 pm

    Paul
    I use that command all the time 🙂
    All my personal domains are hosted on servers without any control interfaces apart from SSH. I used to rely on grepping .bash_history until someone showed me this really cool solution 🙂
    Michele

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

dotblog founder

Mastodon

Archives

  • Bluesky
  • Instagram
  • Threads
  • Twitter

Pages

  • About Me
  • About This Site
  • Archives
  • Comments Policy
  • Contact Me
  • Newsletter
  • Privacy

Blogroll

  • Gianni Ponzi
  • Blacknight Blog
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Gordon Hudson

Stalking Links

Subscribe to Michele Neylon :: Pensieri

Blogroll

  • Blacknight Blog
  • Damien Mulley
  • Gianni Ponzi
  • Gordon Hudson
  • Grandad
  • My Mastodon
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Technology.ie Podcast
  • Tom Doyle

Sites

  • Business Travel Tips
  • Discount Coupon Codes
  • Domain News
  • Fat.ie – my diet blog
  • Film Posters
  • Film Reviews
  • Films
  • Free Desktop Wallpapers
  • Irish Blogger Discussion Forum
  • Irish Stamps
  • Movie Trailers and News
  • Paste.ie

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in