this post was submitted on 04 Jul 2023
1234 points (98.5% liked)

linuxmemes

20761 readers
1662 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] m15otw@feddit.uk 49 points 1 year ago (10 children)

Ctrl+R

Then type any part of the command (filename, search string, etc)

Ctrl+R again to cycle through the matches.

(Best feature in bash)

[–] spoopyking@lemmy.fmhy.ml 6 points 1 year ago (1 children)
[–] m15otw@feddit.uk 3 points 1 year ago (1 children)

Can't just hit enter to run the one you want then, though.

[–] rufus@lemmy.world 7 points 1 year ago

Type: !1234 ... to run whatever history number of the command.

load more comments (8 replies)