my problem is that i keep forgetting to write sudo
before every time i use nano, and eventually what happens is i work on a file for a while and don't have permissions. i remember hearing somewhere that you can edit one of the files so that every time i type
nano filename
it will function as if i wrote
sudo nano filename
i haven’t tried anything since I've no previous knowledge about this.
how would i go about doing this?
sudo
. That's something else than asking for a solution to prevent askingsudo
for a password for any command starting withnano
. I suggest you ask a new question and I'm happy to answer it. In addition to that, always mention the paths you've already tried and why they weren't satisfiable in your question. It's sad to see people spending time on answers you don't want to see. – gertvdijk Dec 24 '13 at 17:16/usr/bin/nano
as the command there) – gertvdijk Dec 24 '13 at 17:20