1

This question already has an answer here:

I am new to lubuntu. I have installed java8 in my laptop. i need to set up environment variable (sudo nano /etc/environmet) i have entered the JAVA_HOME =" path" but i dont know how to properly save and exit the window. Can you please help me with this ?

marked as duplicate by steeldriver, vidarlo, karel, Gunnar Hjalmarsson, Charles Green Jan 26 '18 at 18:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • JAVA_HOME =" path" - also, no space character before or after the =. – Gunnar Hjalmarsson Jan 26 '18 at 15:10
2

Nano commands are listed at the bottom. the ^ character means ctrl. Thus:

ctrl+o to save
ctrl+x to exit

Not the answer you're looking for? Browse other questions tagged or ask your own question.