Can you edit long shell operations with an external text editor?
Answer / Alok Chaudhary
Yes, you can use the `mongo` command followed by the name of your database to enter the MongoDB shell. Once inside, press `Ctrl+Z`, and then type `bg` to run it in the background. After that, open a new terminal, navigate to your previous terminal's directory, and use `fg %1` to bring the background job back into the foreground, allowing you to edit the long shell operations with an external text editor.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to set primary key in mongoose?
How do I show a collection in mongodb?
I am getting error cannot overwrite model once compiled mongoose, how to fix it?
How do I create a collection in mongodb? Write it's syntax
What is arbiter in mongodb?
How do I start mongodb on mac?
What is mongodb built?
How to insert image in mongodb database?
Where does mongodb store data ubuntu?
Why do we use mongodb?
How do you configure to cache size for mmapv1 in mongodb?
Is mongodb unstructured?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)