Introduction to the use of the VI Editor 1. Introduction to history
China Mobile's mobile phone text message background uses UNIX, which is relatively stable;
2. Appearance of Linux
Minix-Linux torvlads
-Minix Operating System-Linus torvlads
-Linus: Finland, 386 PC computers;
The UNIX operating system is so good, why can't it be installed on a PC?
-Port minix to a PC
-Linux name: (1) Linus is modest; (2) Linus is not UNIX
-Inherits UNIX's excellent things;
Disadvantages:
Relatively difficult operations
3. First Linux contact
-Vmvm-software used to virtualize an operating system or a machine
-Relationship between Red Hat and Linux:
Linux is a pure command line interface;
(1) The RedHat company thinks that Linux will be useful in the future. It has integrated common software into Linux, made a desktop, and made secondary development;
(2) S. U. S. e is also a linux package with a desktop and a cool interface. It is mainly popular in some European countries.
(3) China has also developed a red-flag Linux, which is made in China;
4. Common Linux commands
Console interface:
Programmers or administrators of Linux do not know the Console Commands of Linux;
-Root has the highest permissions;
-If you enter a password in Linux and do not display anything, go to the console interface;
-Startx will enter the graphical interface, and the graphic interface will consume a lot of memory and CPU;
(25:38)
5. Use of the VI Editor
1, VI hello. Java
2. Enter I [enter the insert mode]
3. Enter ESC [Enter command mode]
4. Input:, [WQ indicates to exit and save Q! Exit and do not save]
5. Compile hello. Java
Javac hello. Java
If the compilation is successful, no prompt will be given;
If there is no message, it is good news. If there is no good news, the bad news will be sent over a thousand miles;
You can find an extra file, hello. Class
6. run Java,Java hello
-Ls: view all files in the current directory
-Ls-L: the file size and creation date are displayed, which is equivalent to the detailed list.
In addition to Java, Linux can also develop C Programs.
In Linux, how does one develop C ++ programs?
VI hello. c
GCC hello. c
./A. Out
<Wiz_tmp_tag id = "wiz-table-range-border" contenteditable = "false" style = "display: none;">
From Weizhi note (wiz)
2. 2nd introduction-VI editor usage