Copy and paste commands in CMD and PowerShell
In CMD command line and PowerShell, users who often use command line or PowerShell to copy and paste the text will certainly encounter this situation: it is very easy to paste the text, right-click and choose paste, however, if you want to copy command lines or PowerShell commands, you do not know what to do. In fact, you only need to change its attributes. PS: PowerShell is a task-based command line shell, which is the same as the command line setting in CMD. Click the upper left corner of the CMD handler and select Properties. (Or press Alt + space ). Select the quick edit mode and click OK.
Now we can select the text in the command line.
Right-click the new command line to paste it.
You can also select Properties -- edit -- tag to repeat the preceding selection and pasting steps. However, this can only be executed once.