>_ 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
Zuletzt aktualisiert: Fehler melden
Syntax
$:w sudo tee %
Beispiele
$:w sudo tee %
Typische Anwendungsfälle
?
Standardverwendung
:w sudo tee % --help
Hinweis Global and Exiting. Speichert die Datei mit sudo-Rechten.
Export