can't exit from nano "File editting" on mac terminal im trying to edit a file in mac os terminal . Once i press Control + O . it just write "o" without any action .
Any one may help me ? thanks
Control + O
is the shortcut for "WriteOut", which saves modifications, but does not exit the file. To exit nano you need to press Control + X
(short for "eXit") Which will exit nano, after prompting whether you want to save any changes to the file. You can also press Control + G
to view the help file with the list of commands.
I assume you already know this, but in case you don't, when I say Control + X
(for example) it means press the control
key and the X
key, but do not press the +
key
Also if (as you say) when you press Control + O
it just writes the text "o" to screen, your keyboard may have a damaged Control Key, or you may have remapped your control key to do something else in software. You can try a different keyboard, and make sure you don't have any keyboard remapping software active.