Once you are in terminal/command line, access the database/collection you want to use as follows:
show dbs use <db name> show collections
choose your collection and type the following to see all contents of that collection:
db.collectionName.find()
More info here on the MongoDB Quick Reference Guide.
Related Posts:
- What is BSON and exactly how is it different from JSON?
- Failed to start mongod.service: Unit mongod.service not found
- Could not connect to MongoDB on the provided host and port
- MongoDb shuts down with Code 100
- Python dictionary : removing u’ chars
- MongoDB: How to find the exact version of installed MongoDB
- Uninstall MongoDB on Mac OS X
- MongoError: failed to connect to server [localhost:27017] on first connect
- MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating
- Mongo waiting on 27017 even after reinstall
- Python: Find in list
- What are the differences between a HashMap and a Hashtable in Java?
- How to use Collections.sort() in Java?
- When to use LinkedList over ArrayList in Java?
- Difference between Arrays.asList(array) and new ArrayList
(Arrays.asList(array)) - Initialization of an ArrayList in one line
- FileNotFoundError: [Errno 2] No such file or directory [duplicate]
- Is there a short contains function for lists?
- How do I find all files containing specific text on Linux?
- FileNotFoundError: [Errno 2] No such file or directory
- How to sort an ArrayList?
- Difference between HashSet and HashMap?
- TypeError: list indices must be integers, not str (boolean convertion actually)
- SocketException: Address already in use MONGODB
- C# Set collection?
- mongoError: Topology was destroyed
- nodemon – app crashed – waiting for file changes before starting
- “Topology was destroyed” when using MongoDB with native driver and Express.js
- Error: getaddrinfo ENOTFOUND in nodejs for get call
- Using find to locate files that match one of multiple patterns
- How to exclude a directory in find . command
- Why is there no SortedList in Java?
- Java Ordered Map
- Mongoose: findOneAndUpdate doesn’t return updated document
- How to exclude a directory in find . command
- How can I find all *.js file in directory recursively in Linux?
- Mongod complains that there is no /data/db folder
- How can I find a specific element in a List
? - Explaining the ‘find -mtime’ command
- How to convert List
to int[] in Java? - Using find command in bash script
- Printing HashMap In Java
- How to Create and Use Enum in Mongoose
- How to convert int[] into List
in Java? - How do I efficiently iterate over each entry in a Java Map?
- HashSet vs. ArrayList
- FIFO based Queue implementations?
- What is Procfile? and Web and Worker
- What is Procfile? and Web and Worker
- (node:63208) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead
- How do I remove an array item in TypeScript?
- find: missing argument to -exec
- Create a List of primitive int?
- Easiest way to convert a List to a Set in Java
- Push items into mongo array via mongoose
- How to convert int[] to Integer[] in Java?
- Change priorityQueue to max priorityqueue
- Difference between MongoDB and Mongoose
- E: Unable to locate package mongodb-org
- E11000 duplicate key error index in mongodb mongoose
- Collections.emptyMap() vs new HashMap()
- How to use regex with find command?
- Mongoose: CastError: Cast to ObjectId failed for value “[object Object]” at path “_id”
- Subtracting two lists in Python
- Sort a Map
by values - How can I check if character in a string is a letter? (Python)
- How can I check if character in a string is a letter? (Python)
- Unable to connect to mongolab, Getting MongoError: auth failed
- How to easily initialize a list of Tuples?
- How do you put an image file in a json object?
- How do I remove documents using Node.js Mongoose?
- Any implementation of Ordered Set in Java?
- HashSet vs. List performance
- Any implementation of Ordered Set in Java?
- Thread-safe List
property - Most efficient way to increment a Map value in Java
- How can you remove all documents from a collection with Mongoose?
- mongoDB, connection refused
- db.collection is not a function when using MongoClient v3.0
- How to query MongoDB with “like”
- Why is a ConcurrentModificationException thrown and how to debug it
- How to sort a HashSet?
- Union or intersection of Java Sets
- How to update a array value in Mongoose
- In Mongoose, how do I sort by date? (node.js)
- Linux find and grep command together
- Properly close mongoose’s connection once you’re done
- “find: paths must precede expression:” How do I specify a recursive search that also finds files in the current directory?
- How to sort a collection by date in MongoDB?
- How to sort in mongoose?
- Mongodb: failed to connect to server on first connect
- ImportError: No module named ‘pymongo’
- How to drop a database with Mongoose?
- hat’s a clean way to stop mongod on Mac OS X?
- How do you query for “is not null” in Mongo?
- Cannot access mongodb through browser – It looks like you are trying to access MongoDB over HTTP on the native driver port
- Mongod: Command Not Found (OS X)
- MongoDB data/db not found
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- Can I make `find` return non-0 when no matching files are found?