462
Noice (thelemmy.club)
submitted 3 days ago by Obnomus@lemmy.ml to c/linuxmemes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] akunohana@piefed.blahaj.zone 142 points 3 days ago
[-] Obnomus@lemmy.ml 10 points 2 days ago
[-] akunohana@piefed.blahaj.zone 2 points 1 day ago

I approve of the ice to coke ratio. I am now chill.

[-] certified_expert@lemmy.world 2 points 1 day ago
  • ctrl + p
  • ctrl + a
  • sudo [space]
  • enter
[-] Obnomus@lemmy.ml 1 points 1 day ago

How about just one keyboard shortcut and enter.

[-] Ephera@lemmy.ml 32 points 3 days ago

Always amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).

[-] akunohana@piefed.blahaj.zone 60 points 3 days ago* (last edited 3 days ago)

You just blew my mind. sudo [space] [shift] !! [enter] (4+1+1+1+1+1) is one keypress longer than ↑ + home + sudo + space + enter (1+1+4+1+1). In your face, universe.

[-] logi@lemmy.world 12 points 3 days ago

If you have an actual home key. If it's ctrl+a or (IIRC, AFK) ctrl+← then we're even.

And if we track hand movements then pressing ! twice may be faster than moving to another key.

But yeah, it's not at all clear that sudo !! is faster like you'd expect it to be.

[-] Axolotl_cpp@feddit.it 18 points 3 days ago

But it's faster since your hand move less and you can keep shift pressed

[-] Nilz@sopuli.xyz 12 points 3 days ago

I use zsh with the sudo plugin. Double tap esc and your current or last command will be prefixed with sudo.

[-] akunohana@piefed.blahaj.zone 8 points 3 days ago

I don't dabble in black magic. /j

It's actually pretty neat.

[-] a14o@feddit.org 1 points 1 day ago

Start with ctrl+p, ctrl+a but yes

[-] SkaveRat@discuss.tchncs.de 16 points 3 days ago

Ctrl A is easier to reach than the home key

[-] ClownStatue@piefed.social 4 points 3 days ago

Unless you’re in a default screen session (I always thought ^A was such a dumb default for screen to use).

[-] AnUnusualRelic@lemmy.world 3 points 2 days ago

Screen must have been written by someone who wasn't familiar with the shell. It's the only logical explanation.

[-] ClownStatue@piefed.social 2 points 2 days ago* (last edited 2 days ago)

Maybe someone who only used csh? I can’t remember if ^a is a default in that shell. I thought it started with ksh or bash.

ETA: just looked it up and I’m dumb. Comes from emacs (of course) and looks like it was introduced in bash. I guess I could claim ignorance, being a VI man, but I actually knew at some point that it came from emacs. I think I can count on 1 hand the number of times I’ve used emacs

this post was submitted on 26 May 2026
462 points (97.9% liked)

linuxmemes

31551 readers
608 users here now

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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS