Ubuntu: .nano_history Permission denied

If you do man nano, you’ll see there’s a /etc/nanorc config file. Edit this to comment out #set historylog.

This will prevent sudo nano commands from creating the root users .nano_history in your home directory, which nano can’t read when called by your user account. After commenting it out, then delete it with sudo rm .nano_history.

Source: http://ubuntuforums.org/showthread.php?t=204307

About gerrit

bicyclist, programmer, movie-goer, Bergman fan, music-listener, picture-taker, interested in math, physics, astronomy, marine biology, science, nature, mountains, languages, knitting, Linux, Open Source, web-development and more.
This entry was posted in Software and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>