alphacyberranger to Programmer Humor@programming.devEnglish • 9 months agoUp up and away we gosh.itjust.worksimagemessage-square29fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageUp up and away we gosh.itjust.worksalphacyberranger to Programmer Humor@programming.devEnglish • 9 months agomessage-square29fedilink
minus-square@Fillicia@sh.itjust.workslinkfedilink0•9 months agoI really like this comic. Just in case someone didn’t know in Linux you can: -Ctrl + r to search previous commands Or -type history and precede the command number by an exclamation (!) to repeat the command (I.e. “!13”)
minus-square@Trashboat@lemmy.blahaj.zonelinkfedilink0•9 months agoIt’s probably from within the last 30 years or so
minus-square@BlackPenguins@lemmy.worldlinkfedilink0•9 months agoOh good as long as it’s only a recent update.
minus-square@Tetsuo@jlai.lulinkfedilink0•9 months agoAlso if you put “sensitive” information in your history by mistake you can use “history -d <line#>” to remove it. Unfortunately I had to use this command too many times.
minus-square@Aurenkin@sh.itjust.workslinkfedilink0•edit-29 months agoOr just !! for the last command. Particularly helpful if you forgot to prefix it with sudo you can run sudo !!
minus-square@zarkanian@sh.itjust.workslinkfedilink0•9 months agoFish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.
minus-square@Fillicia@sh.itjust.workslinkfedilink0•9 months agoI’m personlly a zsh+oh-my-zsh person which has the same type of auto complete option. My only regret is that something broke the thefuck plugin on my pc and now swearing at my screen doesn’t fix my mistakes.
minus-square@vvv@programming.devlinkfedilink0•9 months agoI highly recommend installing fzf, and its shell integration. Makes your Ctrl + r magnitudes more pleasant to use!
minus-squarefmstratlinkfedilinkEnglish0•9 months agoOr control R, start typing a bit, control r again.
minus-square@oxomoxo@lemmy.worldlinkfedilink0•9 months agoThis works in Powershell as well, even on Windows…
I really like this comic. Just in case someone didn’t know in Linux you can:
-Ctrl + r to search previous commands
Or
-type history and precede the command number by an exclamation (!) to repeat the command (I.e. “!13”)
What. Da fuck. This always existed?!
It’s probably from within the last 30 years or so
Oh good as long as it’s only a recent update.
Also if you put “sensitive” information in your history by mistake you can use “history -d <line#>” to remove it.
Unfortunately I had to use this command too many times.
Or just
!!
for the last command. Particularly helpful if you forgot to prefix it withsudo
you can runsudo !!
Learn something new everyday
Fish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.
I’m personlly a zsh+oh-my-zsh person which has the same type of auto complete option.
My only regret is that something broke the thefuck plugin on my pc and now swearing at my screen doesn’t fix my mistakes.
I highly recommend installing fzf, and its shell integration. Makes your Ctrl + r magnitudes more pleasant to use!
Or control R, start typing a bit, control r again.
This works in Powershell as well, even on Windows…