There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

dejected_warp_core ,

There is an advantage to this approach though: fewer errors. You’re plucking a known working command from a list instead of manually typing a (possibly) broken version of it. Worse yet is when it’s a command where typematic mistakes cause unintended side effects like data loss. So, mashing up 100 times can be pretty smart, especially if you’re not a great typist.

hex ,

At work, was recently working on a script that alters the repo significantly. Every time I tested the script, I used the up arrow to get the git clean and git checkout HEAD – files commands to reset the repo. I must’ve used those 100+ times.

Fedegenerate ,

Me looking for apt update && apt upgrade -y

Aurenkin ,

I’ve been using Atuin on my work computer and found it to be pretty good if you want something a bit fancier than Ctrl + R

recursive_recursion ,
@recursive_recursion@programming.dev avatar
superkret ,
Fillicia ,

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”)

Aurenkin ,

Or just !! for the last command. Particularly helpful if you forgot to prefix it with sudo you can run sudo !!

Redderthanmisty ,

Learn something new everyday

BlackPenguins ,

What. Da fuck. This always existed?!

Trashboat ,
@Trashboat@lemmy.blahaj.zone avatar

It’s probably from within the last 30 years or so

BlackPenguins ,

Oh good as long as it’s only a recent update.

Tetsuo ,

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.

zarkanian ,
@zarkanian@sh.itjust.works avatar

Fish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.

Fillicia ,

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.

Varyk ,

I definitely do this with terminal commands, because I’m not hunting for whatever the specific command line to animate my gif wallpaper is.

fuzzy_feeling ,

been there, done that.

then i heard about cli snippet manager. now i use qownnotes snippet manager qc. or you might try pet.

Varyk ,

did you know about the ctrl+r command so you can search logged commands by keyword!

magic lobster party told me about it and it’s amazing!

I had no idea that was a function until now.

magic_lobster_party ,

Ctrl + R is a life changer.

Varyk ,

HOLY SHIT.

hahahaha, thank you. oh my gosh.

This is the most significant turmoil hotkey I’ve learned in months.

♪⁠┌⁠|⁠∵⁠|⁠┘⁠♪

dejected_warp_core ,

Upvoted for the dancing and singing emoticon. Nice art.

Varyk ,

Thanks, someone told me hiw to acess the old-school emotiocns recently and i like them.

I Like THEM!

(⁠ノ⁠°⁠_⁠o⁠)⁠ノ⁠⌒⁠┫⁠ ⁠┻⁠ ⁠┣⁠ ⁠┳

xmunk ,

Sorry, do you not keep sql scratch files around?

If deving on the cli name and save to separate files your reusable queries…

Samsy ,

That’s when I realise I need more coffee.

Boomkop3 ,

I do that sometimes, lazy as I can be

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines