I am new to Ubuntu. I know I can open a file using vim in read-only mode by pass the -R option:
vim -R <filename> //Gives warning if I try to write
However, if I do the same thing with nano, I am able to write files freely:
nano -R <filename> //I can still write
What am I doing wrong? How can I open files in read-only mode using nano?