Thursday, September 27, 2018

Need sudo in order to save

If you are editing a file without sudo, and you need sudo in order to save, simply use this vim command
:w !sudo tee %

No comments:

Post a Comment

systemd-timesyncd

sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd