>_ linuxcommand.dev
Startseite :w sudo tee %
Vim

:w sudo tee %

Write out the current file using `sudo`.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Last updated: Report error
Syntax
$:w sudo tee %
Examples
$:w sudo tee %
Typical use cases
?
Standard usage
:w sudo tee % --help
Note Global and Exiting. Saves the file with sudo privileges.
Export