Ctrl + R is bash history search
120 0 ReplyThat sounds an aweful lot like typing to me
95 0 ReplyKeep hitting CTRL+R until you find it and you can hit CTRL+S to scroll forward if you went past it 👌
44 0 ReplyI've used ctrl R for 20 years.
Now I learn of ctrl S. This is a blessed day!
55 0 ReplyOr CTRL+SHIFT+r, CTRL+s just pauses my terminal output, you can unpause it with CTRL+q
5 0 Reply
I feel dirty for still using
history | grep ls
lol21 0 ReplyI usually alias that to "bastard", I agree with a very dirty feeling.
3 0 ReplyWhat if
history
only shows the last 10-15 entries? You might have to actually type the location of the history file or find out ifhistory
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.
2 0 Reply
Ctrl + R ls
14 0 ReplyUse fzf for an improved experience!
8 0 ReplyI prefer to just speak to my computer instead of using a keyboard. The computer doesn't respond but maybe one day
4 0 Reply5 0 ReplyA 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.
3 0 Reply
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.
55 0 ReplyI usually bind it to my up arrow. Means I can still keep tapping up ;)
9 0 ReplyThank you for this
8 0 Reply
If people are going to make comics about me, they could at least let me know.
53 1 ReplyWe 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.
21 0 ReplyWhat if you are the wall
6 0 ReplyOh, that's a relief, thank you. You can go back making barely audible whispers and occasionally humming Baby Shark now.
5 0 Reply
Jfc, how did they film me?
25 0 ReplyYou're in the Matrix
3 0 Reply
Me last Thursday:
user@work5:~$ [CTRL-R] ls
user@work5:~$ ls
me: "That will do..."
25 1 Replyid type out
more ~/.bash_history | grep ls
and copy, paste before id type outls
tbh19 0 ReplyWhy do all that typing? Hit ctrl-r first then type ls. Bonus points if you hook fzf into it.
fzf hooked into ctrl-r, a bash history of about 100k and HISTCONTROL=ignoreboth is magic.
Note: backup your history file periodically, system crashes at the wrong time can zero it leaving you incompetent until it's restored.
7 0 ReplyPretty sure you just got wooshed...
1 0 Reply
You can pipe it to wl-copy, and then when you need it all you need to type is wl-paste
1 0 Replyat least you avoided a "useless cat" by using "more" instead. Respect Bro!
2 1 ReplyUseless use of
more
2 1 Reply
Last week I switched to a new distro and decided to nuke everything except my personal data in my backup. I immediately regretted not saving my shell history file.
18 0 ReplyGo with McFly and save the history database, you won't regret.
2 0 ReplyFzf does a great job as a Ctrl-r browser too
3 0 Reply
alias l=ls
so you can finally breathe15 0 ReplyPermanently Deleted
19 0 ReplyThat's just showing off, take an upvote
2 0 Reply
Then you try this on Windows and are disappointed that it doesn't remember anything from your last session.
12 0 Reply3 0 ReplyMy Powershell history broke yesterday after a very intense git session ;-;
3 0 Reply
Looks more like trying to get into the bios
12 0 ReplyOne finger is not enough for that, could be ESC, F2, F12, DEL or whatever else the bios manufacturer landed on when they threw a dart at the keyboard.
21 0 ReplyRoll your face across the keyboard repeatedly
9 0 ReplyIf you're on an EFI based system and have systemd, you can use
systemctl reboot --firmware-setup
to get into BIOS!4 0 ReplyDEL has always worked in my experience, even when they don't specify it.
1 0 Reply
Ctrl-r
That said... I didn't discover it so early as I should....
10 0 ReplyL and s are on the other side of the keyboard and I only have one hand free. Too much work.
10 0 ReplyFinally somebody that gets the joke lol all these people in here "well akchually" not getting it
1 0 ReplyThis guy keeps his porn in /var?
3 0 Reply
Ouff... way too accurate.
3 0 Replyzsh if you can survive configuring it
2 0 Replyoh god it me.
I’m only now trying to Ctrl-R my way out of this mess.
1 0 ReplyYup
2 1 ReplyNo.
1 2 Reply