Save file in vim with permission denied
How to save file in vim when
:wshows Can’t open file for writing: Permission denied.
:w !sudo tee % :q!
Back to Table of Contents
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.com, replace # with @
- Not all the commands and scripts are tested in production environment, use at your own risk
- No personal information is collected.