How to Learn about linuxshell?

Source: Internet
Author: User
Learn about linuxshell-general Linux technology-Linux programming and kernel information. For more information, see the following. I 'd like to share with you some of my experiences in learning linux shell.
When I installed the java jdk in linux to configure environment variables, I felt that the configuration method I mentioned on the Internet was a little troublesome. I wrote a shell script and put it in/bin, which is quite useful., the Code is as follows:
Xxxxxxxx/javac $1. java
Xxxxxxxx/java $2
Xxxxxxxx indicates the full path of the java jdk installed for you. Note that you can only go to the bin directory of the java jdk you installed here. Do not write the wrong path.
For example, you can save the script as java and place it in/bin to give it the execution permission. After writing the java source code, you only need to go to the directory where the java source program is located to directly view the running result.
Test1 is a java source program (. java) and test2 is a class with the main method in the java source program. class) Everything is okay and it's easy to configure environment variables, haha. it's so powerful.

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.