Configure JDK environment variable 1 in Ubuntu13.04. Enter sudovi/etc/prifile on the terminal and enter the user password as prompted. 2. Add the following code to the end of the file: JAVA_HOME =/home/qmxl/soft/jdk1.7.0PATH = $ JAVA_HOME/bin: $ PATHCLASSPATH =.: $ JAVA_HOME/lib/dt. jar
Configure JDK environment variables in Ubuntu 13.04
1. Enter the terminal, enter sudo vi/etc/prifile, and enter the user password as prompted.
2. Add the following code at the end of the file:
JAVA_HOME =/home/qmxl/soft/jdk1.7.0
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME
Export PATH
Export CLASSPATH
3. Save and exit. log out.
VI Operation Reference
Three command modes of vi
Command mode, used to input commands;
Insert mode, used to Insert text;
Visual mode: used to highlight the video and select the body;
: W save;
: Wq! Save and exit;
: Q! Do not save and exit;
J. Move a row down;
K. Move a row up;
H: move one character to the left;
L move one character to the right;
Ctrl + B Move the screen up;
Ctrl + f move one screen down;
O insert a row above the row where the cursor is located;
O insert a row under the row where the cursor is located;
U undo the modification or deletion operation;
U undo so
Press ESC to return Command mode,
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2