Contents
How do I paste multiple lines in terminal?
4 Answers. Alternative: You type/paste line by line (finishing each one with the enter key). Finally, type the finalizing ) and hit enter again, which will execute the whole pasted/entered lines.
How do you copy and paste multiple lines in Linux?
Copy and paste multiple lines
With the cursor at your desired line press nyy , where n is the number of lines down you want to copy. So if you want to copy 2 lines, press 2yy . To paste press p and the number of lines copied will be pasted below the line you are on now.