122 points

Ctrl + R is bash history search

permalink
report
reply
96 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
56 points

I’ve used ctrl R for 20 years.

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

permalink
report
parent
reply
12 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

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

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

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

Please report posts and comments that break these rules!

Community stats

  • 6.8K

    Monthly active users

  • 1.3K

    Posts

  • 71K

    Comments