ubuntu - nano via SSH commands not working -


i logged vps server via ssh remote computer, macbook pro. run command visudo edit config file using nano, when done editing file attempt exit using control x or ^x (same thing). instead of prompting me if want save, have read, says @ bottom...

--^x mode (^]^d^e^f^i^k^l^n^o^ps^u^v^y) 

i can't exit nano, , when try other commands control g nothing happens.

how exit nano , save file?

thanks

you're not running nano, you're running vim.

hit ctrl+z put vim in background , shell (you can kill vim kill %1).

then export editor=nano , visudo again edit using nano.

(to instead save , exit in vim, use esc exit "^x mode", press uppercase z twice save , exit).


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -