Popular Categories

How to copy paste in MongoDB Shell?

A very common need we all need during the use of MongoDB is copy pasting in the shell or windows command editor. After digging a bit, here are few options for windows:

Option 1: You copy and then simply goto command prompt and use right click. It will auto paste everything you last copied onto the command prompt.

Option 2: 

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.

Was this helpful? Did I missed something? Do you have a question? Get in touch.