xhell command to modify file content

Go to the specified folder and find the specified file

1. Input: vim server.xml

[server.xml can be replaced]

2. Press the "i" key on the keyboard to switch to the editing mode, and then use the up, down, left, and right keys to find the position you want to change, and modify it;

 

3. After the modification is completed, press the "Esc" key to exit the editing mode, then press the "Shift" and ":" keys at the same time, and enter "wq" to save the modification;

 

Tip: If you undo the modification, replace "wq" with "q";

         You can also use "q!" to force quit the file;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326209363&siteId=291194637