I've used shell environments in the past where the text editor "nano" will warn me if I don't have write permissions on a file when I open the file for editing. This saves me a lot of time when I forget to type "sudo" beforehand and then spend time editing the file only to have to do all over it again.

I'd like to duplicate this behavior on several other servers, but don't see anywhere in the nano manpages where this is an option.