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