121 points

Ctrl + R is bash history search

permalink
report
reply
95 points

That sounds an aweful lot like typing to me

permalink
report
parent
reply
45 points

Keep hitting CTRL+R until you find it and you can hit CTRL+S to scroll forward if you went past it 👌

permalink
report
parent
reply
55 points

I’ve used ctrl R for 20 years.

Now I learn of ctrl S. This is a blessed day!

permalink
report
parent
reply
11 points

You know you’re allowed to read the docs, right?

permalink
report
parent
reply
5 points
*

Or CTRL+SHIFT+r, CTRL+s just pauses my terminal output, you can unpause it with CTRL+q

permalink
report
parent
reply
3 points

I was gonna say I always used Ctrl+shift+r… didn’t even know about control+s being s thing…

permalink
report
parent
reply
21 points

I feel dirty for still using history | grep ls lol

permalink
report
parent
reply
3 points

I usually alias that to “bastard”, I agree with a very dirty feeling.

permalink
report
parent
reply
2 points
*

What if history only shows the last 10-15 entries? You might have to actually type the location of the history file or find out if history has any command line switches. (Does it have any switches? Dunno.)

Edit: I think CIS Benchmarks recommended limiting bash history. Regardless, I have seen some installations that only show an abbreviated bash history by default.

permalink
report
parent
reply
14 points

Ctrl + R ls

permalink
report
parent
reply
8 points

Use fzf for an improved experience!

permalink
report
parent
reply
3 points

So basically this? It’s absolutely amazing. Just be warned that it replaces ctrl+R AND up arrow shortcuts by default. You can easily disable the up arrow though.

permalink
report
parent
reply
3 points

I’ve not heard about atuin before but seems to do the same thing. I don’t know the specific differences.

permalink
report
parent
reply
4 points

I prefer to just speak to my computer instead of using a keyboard. The computer doesn’t respond but maybe one day

permalink
report
parent
reply
5 points

permalink
report
parent
reply
3 points
*

A speech operated terminal would be possible, speech to text is pretty well developed by now, shouldn’t be too hard to hook that up to a terminal.

But, y’know, effort.

permalink
report
parent
reply
3 points
*

Precisely, I gotta type in order to go find a program that does that or write one myself. I will simply continuing speaking to an unyielding electric box until it gains sentience and responds.

permalink
report
parent
reply
55 points

You can Ctrl+R, type “ls”, then keep hitting Ctrl+R until you find one without arguments if you need them. Efficiency at its finest.

permalink
report
reply
9 points

I usually bind it to my up arrow. Means I can still keep tapping up ;)

permalink
report
parent
reply
8 points

Thank you for this

permalink
report
parent
reply
52 points

If people are going to make comics about me, they could at least let me know.

permalink
report
reply
23 points

We tried telling you.

Maybe if you stopped screaming every time we tried, but nooo, SOMEONE has to have issues with the voices in their walls.

They’re never going to find the body anyway. Stop worrying.

permalink
report
parent
reply

What if you are the wall

permalink
report
parent
reply
4 points

It’s time to ask yourself what you really are, because for all your big talk, all in all, you’re just another brick in the wall.

permalink
report
parent
reply
5 points
*

Oh, that’s a relief, thank you. You can go back making barely audible whispers and occasionally humming Baby Shark now.

permalink
report
parent
reply
25 points

Jfc, how did they film me?

permalink
report
reply
3 points

You’re in the Matrix

permalink
report
parent
reply
24 points
*

Me last Thursday:

user@work5:~$ [CTRL-R] ls

user@work5:~$ ls

me: “That will do…”

permalink
report
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

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!

Community stats

  • 7.6K

    Monthly active users

  • 1.2K

    Posts

  • 68K

    Comments