1st days: common basic knowledge of Linux and Java environment configuration in Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.