Linux Learning Diary: The next day

Source: Internet
Author: User

Learn vi editing commands today;

[Email Protected]:vi Hello.java

The command to use:

Insert command:

    • a and i: Insert text before or after the current cursor (a and i insert text at the end of the current line or at the beginning of the line);

    • o and o : Inserts text below or above the current line. (Line wrapping)

After editing, press ESEC, execute Save command: (: wq-Save exit,: q! do not save direct exit)

[Email Protected]::wq

Execute the LS command to view the file:

Found two files, before a lowercase hello.java is a previously created file, do not use the RM command to delete it:

RM XX Delete a file
rm-f XX Delete When not prompted, can be used in conjunction with the R parameter
RM-RF XX Delete the entire directory called XX under the current directory

Next, execute the javac command to compile the Hello.java file:

Javac package found not found, install Javac compile package

Linux Learning Diary: The next day

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.