can't exit from nano "File editting" on mac terminal

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

1 Answer

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.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like