before editing a file in vi.
no sweat, there’s a way to fix that without redirecting to another file.
:w !sudo tee %
thats’s a nice way to elevate your privileges, so long as you have sudo access.
before editing a file in vi.
no sweat, there’s a way to fix that without redirecting to another file.
:w !sudo tee %
thats’s a nice way to elevate your privileges, so long as you have sudo access.