Quantcast
Channel: sudo Archives - SysTutorials
Viewing all articles
Browse latest Browse all 22

How to write file content with sudo in Vim?

$
0
0

Vim opens file even if the user does bot have write permission to the file. But after revision, how to write file content with sudo in Vim if Vim reports no permission to write the file. Use this command inside of vim to write to the file with sudo: :w !sudo tee % Here, ! […]

The post How to write file content with sudo in Vim? is from SysTutorials.


Viewing all articles
Browse latest Browse all 22

Trending Articles