How to copy and paste text in MongoDB shell

Michael Horojanski picture Michael Horojanski · Apr 3, 2017 · Viewed 16.8k times · Source

How to copy and paste text in MongoDB shell?

I tried Ctrl+C and Ctrl+V but it didn't work.

Thanks, Michael.

Answer

chridam picture chridam · Apr 3, 2017

For Windows:

Copy: Right-click anywhere in the command prompt window, then click Mark. Click the beginning of the text you want to copy. Press and hold down the SHIFT key, and then click the end of the text you want to copy (or you can click and drag the cursor to select the text). Either right-click the title bar, point to Edit, and then click Copy OR press Enter.

Paste: Position the cursor where you want the text to be inserted: Right-click and then click Paste.

enter image description here