this post was submitted on 24 Mar 2024
355 points (95.6% liked)

linuxmemes

20762 readers
1363 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 26 points 5 months ago (2 children)

Lazy vim way I do it:

ggVG"wY:q! followed by sudo !! then VG"wp:x

Grab entire file and stuff it in register W

Exit file

Reopen sudo

Select all and replace with register W them write

[–] [email protected] 28 points 5 months ago (1 children)

Now I understand how the Adeptus Mechanicus feel when they perform a ritual power-on.

[–] [email protected] 10 points 5 months ago

It's funny how years of use make that so intuitive but spelled out it's a garbled mess

[–] [email protected] 10 points 5 months ago (1 children)
[–] [email protected] 2 points 5 months ago

Yeah learning about tee from this thread honestly.

It's been interesting realizing I had such a useful tool at my disposal but never knew