tool related

xshell putty winSCP sinCRT

insert get set method alt + insert

linux syntax:
# mkdir file new file
# vi filename : open or create a new file, and place the cursor at the beginning of the first line
wq save and exit the file
# tar -zxvf /tmp/etc. tar.gz Unzip the /tmp/etc.tar.gz file

cmd syntax:
C:\>d:

Do not close the last line of the file after running the bat file plus

the entire line (multiple lines) in the pause vi editor. Copy and paste is very necessary.
    1. Copy
    1) Single line copy
    In command mode, move the cursor to the line to be copied, press "yy" to copy;
    2) Multi-line copy
    In command mode, move the cursor to the first line to be copied, Press "nyy" to copy n lines; where n is 1
    , 2, 3... 2. Paste
    in command mode, move the cursor to the line to be pasted, and press "p" to paste

vi
Method 1:
The cursor is placed on the 6th line,
input: 2yy The
cursor is placed on the 9th line,
input: p
This method is suitable for copying a small number of lines of text, copy the 2 lines of data below the 6th line (including), and put it on the 9th line under.
Method 2:
In command line mode, enter
6,9 co 12
to copy the content between lines 6 to 9 to the back of line 12.
Method 3:
Sometimes when you don't want to look at how many lines or copy a lot of lines, you can use labels instead. Move the
cursor to the start line, enter ma
to move the cursor to the end line, enter mb
to move the cursor to the paste line, enter mc
and then: 'a ,'b co 'c Change co to m to cut.
To delete multiple lines, you can use: 5, 9 de


x Delete the character under the current cursor
dw Delete the rest of the word after the cursor.
d$ deletes the remainder of the line after the cursor.
dd deletes the current line.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326857510&siteId=291194637