dammit i forgot to sudo…

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.

Linux File System Hierarchy

it’s alway nice to see an infographic for file systems, like on this site.

YMMV based on distro, FHS foundation specifications found here.