Nano tip!
Tired of getting Error writing
... Permission denied
when you forget to type sudo
using nano
? Don't want to waste time retyping changes or moving it to and from temporary file? Copy this handy function to your .bashrc
to automatically use sudo
if file requires higher permissions.
Same for Fish shell
More handy bash stuff here.