If you want to paste the third line of the file into the fifteenth line:
1. Enter your file, (in command mode, not edit mode)
2 Move your cursor to the beginning of your third line (with the arrow keys)
3, press v, (you find that you switch to visual mode), press the arrow keys, know that you want to select What you want
4. Press y and move the cursor to the end of the fourteenth line.
5.Press p. Finish
This method can be used for multi-line pasting -> copy
If you want to cut -> copy it is even simpler (only for single line)
1. Enter your file, (in command mode, not edit mode)
2. Move your cursor to the beginning of your third line (with the arrow keys)
3. Press twice (discover that the third line is missing)
4, then move the cursor to the end of the fourteenth line and press p.
Under the GUI: Press i to enter the insert mode, use the mouse to drag and select the content to be pasted, move the cursor to the place to be pasted, and press the middle mouse button (two-button mouse can press the left and right buttons at the same time).
Under plain text terminal:
Select the text block, use v
to copy the selected block to the buffer, and use y
to copy the entire line , use yy
to open the second file in the same edit window, use: sp [filename]
to switch between multiple edit files, use ^ww
Cut the block, use d
to cut the entire line with dd
Paste the contents of the buffer, use the p
command to add a number to indicate the number of repetitions, plus the letters to indicate the use The name of the buffer.
Get help with: help [content or command]
END
Press Esc when booting up to bring up the GRUB menu. Enter advanced mode. After selecting
Sometimes when Linux has multiple network cards, you need to add routes to other network ca
1. Comparison of several file systems (1) support the file system in the Linux system: Ext2 second e
Use yum to install the scheduled task function. The result is prompted:
Copy the code
The code is as follows:
# yum -y install vixie-cron
Loaded plugins: fastestmirror, refresh-pa
Grep yum root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum root 25960 0.0 0.0 0 0 ? Z Sep19
Linux command (in the use of -a, -o, not in find)
Linux system setting command alias
The server does not support the curl
Linux view file time accurate to seconds
Linux/centos solves Tomcat memory overflow
Ubuntu13.04 Use plymouth to modify the splash screen
How to use rsync for data backup under Linux
Linux common command directory processing
Summary of Techniques for Copying Files Between Linux Systems
How to set the automatic shutdown of the computer of Win7\\Win8 system?
Tap the hidden features of Windows 7 Set up your own Wi-Fi base station
How to deal with the computer network speed is too slow
Blank password causes remote connection Server2008 failure
Win8.1 modify the location of desktop, video, image and other files
Omit password input steps to log in directly to Windows 8 system
Win7 open QQ remote assistance how can not connect to the other computer
CMOS boot password removal method