I. Unix Commands
Current path
Superior path
/Root directory
PWD: view the directory of the current operation
Ls to list subdirectories and files in the current directory
ID to view information of the current user
CD switch current directory
VI is used to edit the text in the command line
There are three statuses for entering VI:
Status, default status for vi
Editing status, the status when editing the file (I, A, S)
Command status, command invocation status
First, press I, A, and s to enter the editing status.
When the editing status is complete, Press ESC to enter the status (command status)
: W wq! Q
PS view process PS-ef (view detailed process)
Kill process Id kill PID
Ii. Java Development Environment
1. terms:
IDE: integrated development environment
JDK: Java Runtime Environment
JVM: Java Virtual Machine
GC: Garbage Collection Mechanism
2. Java program development steps:
1) download jdk1.6.0.1
2): Install jdk1.6.0.1
3): Configure Environment Variables
Windows:
Path = installation directory/bin ;.
Classpath = installation directory/LIB ;.
Linux:
Vi. bash_profile
Java_home =/opt/Java path
Path = $ java_home/bin :.
Classpath = $ Java-home/lib :.
Export java_home path classpath
Source. bash_profile