Copy Paste in Bash on Ubuntu on Windows

后端 未结 13 1624
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 09:32

How to execute a copy paste operation from Windows 10 to the Bash on Ubuntu on Windows environment?

I tried the following:

  • ctrl + shift
相关标签:
13条回答
  • 2020-12-07 09:52

    That turned out to be pretty simple. I've got it occasionally. To paste a text you simply need to right mouse button click anywhere in terminal window.

    0 讨论(0)
  • 2020-12-07 09:55

    Ok, it's developed finally and now you are able to use Ctrl+Shift+C/V to Copy/Paste as of Windows 10 Insider build #17643.

    You'll need to enable the "Use Ctrl+Shift+C/V as Copy/Paste" option in the Console "Options" properties page:

    enter image description here

    referenced in blogs.msdn.microsoft.com/

    0 讨论(0)
  • 2020-12-07 09:57

    Update 2019/04/16: It seems copy/paste is now officially supported in Windows build >= 17643. Take a look at Rich Turner's answer. This can be enabled through the same settings menu described below by clicking the checkbox next to "Use Ctrl+Shift+C/V as Copy/Paste".


    Another solution would be to enable "QuickEdit Mode" and then you can paste by right-clicking in the terminal.

    To enable QuickEdit Mode, right-click on the toolbar (or simply click on the icon in the upper left corner), select Properties, and in the Options tab, click the checkbox next to QuickEdit Mode.

    With this mode enabled, you can also copy text in the terminal by clicking and dragging. Once a selection is made, you can press Enter or right-click to copy.

    0 讨论(0)
  • 2020-12-07 09:58

    Like it has been written before:

    • Right Click on Bash on Ubuntu on Windows Icon if you have it on a Task Bar Shortcut Icon
    • Click on Properties
    • Select Options Tab on the Properties Window
    • Check the QuickEditMode option
    • Click Apply

    Now you are able to open a new Bash Terminal and just use Right-Click to paste

    In order to be able to copy from Terminal, Just use CTRL+M and this will enable you to select and copy selected Text.

    0 讨论(0)
  • 2020-12-07 09:58

    you might have bash but it is still a windows window manager. Highlite some text in the bash terminal window. Right click on the title bar, select "Edit", select "Copy", Now Right Click again on the Title bar, select "Edit" , Select "Paste", Done. You should be able to Highlite text, hit "Enter" then Control V but this seems to be broken

    0 讨论(0)
  • 2020-12-07 10:00

    Edit / Paste from the title bar's context menu (until they fix the control key shortcuts)

    0 讨论(0)
提交回复
热议问题