Linux Configuration JDK Environment variables

Source: Internet
Author: User

Jdk-8u111-linux-x64.tar.gz This is a compressed package of JDK in Linux system.

Delete command:

RM-FR Directory Name "This command is mandatory to delete the meaning of"

To modify a character encoding set:

Export LANG=ZH_CN. UTF-8

To view the character encoding set:

Echo $LANG

There is also the need to modify the default character encoding set in the terminal session.

This is the syntax for window's environment variables.
java_home=d:\java\jdk1.8.0_91
Classpath=.; %java_home%\jre\lib\rt.jar;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Path=%java_home%\bin;

Linux decompression command "must be extracted under the Linux system, or there will be a file exception error":

Tar xzvf jdk-8u111-linux-x64.tar.gz

This is the wording of the environment variable in Linux.
Export java_home=/software/jdk1.8.0_111
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $JAVA _home/bin: $PATH

To store environment variables in global variables:

Vi/etc/porfile values are added by a or I, and then Wq saved after pressing ESC . Finally reconnect again.

1.RWX R-x rwx
421 401 421

Modify Permissions
chmod 757 file name.

Modify the owner.
Chown A2:A2 Test.txt

Create a file.
Touch file name.

Displays the time of the current system.
Date.

Linux Configuration JDK Environment variables

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.