How to copy and paste text in MongoDB shell?
I tried Ctrl+C and Ctrl+V but it didn't work.
Thanks, Michael.
If you are using Windows then Command:
Copy = Ctrl + Insert
Paste = Shift + Insert
This works for Windows as well as Linux:
1. Select your text using Mouse
2. Press Mouse-Right button to Copy & Paste
3. Press Mouse-Right button to Paste copied text from Clipboard
This is what I did:
I ran mongo shell on the command line to have access to my databases.
I wanted to add some data to a collection.
I wrote the code in a text editor.
Then I tried to use CTRL+C
and CTRL+V
but mongo shell did not accept it.
So instead I RIGHT CLICKED on the command line TAB, CLICKED on EDIT, then CLICKED on PASTE.
I hope this helps.
Please see image gif here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With