48
sudo !! (infosec.pub)
you are viewing a single comment's thread
view the rest of the comments
[-] Illecors@lemmy.cafe 0 points 1 year ago

I used to do sudo !!, but then I've started learning the shortcuts of my shell a bit more - Ctrl+A jumps to the beginning of the line, which, technically speaking, is a saving of 1 (!) keystroke, compared to Shift+1+1.

This has also led to discover that emacs is actually much more useful compared to vim as it uses the same shortcuts.

[-] hedgehog@ttrpg.network 1 points 1 year ago

If you already submitted the command, you’ll have to hit Up first to have a line to jump to the beginning of, though, so it’ll be the same number of keystrokes either way.

I do the same thing you do, just with vi-mode keystrokes (up, then esc-I).

this post was submitted on 18 Jul 2023
48 points (100.0% liked)

linuxmemes

20707 readers
1415 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS