• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me
Home » MongoDB » MongoDB Terminal commands – Cheatsheet

MongoDB Terminal commands – Cheatsheet

December 4, 2020 by GokulDeepak 2 Comments

Import Mongodb from csv:

All data should be comma separated and each rows are line separated

mongoimport --db dbname --collection colectionname --type csv --file filename.csv --headerline

To Find the Range of dates

db.softwareInventory.find({ date: { $gte: ISODate("2020-10-16T00:00:00.000Z"), $lt: ISODate("2020-10-16T22:47:55.302Z") } })

Related

Filed Under: MongoDB

Authored by Gokul Deepak S

Reader Interactions

Comments

  1. Siva G says

    November 19, 2020 at 11:56 am

    Thank you for your information.. very useful

    Reply
    • Gokul Deepak S says

      November 23, 2020 at 3:00 pm

      Happy that it helps

      Reply

Leave a Reply Cancel reply

Primary Sidebar

Popular Posts

  • How to find the date of the Facebook group it was created
  • Home
  • Downgrade from Lollipop to Kitkat for Micromax Canvas A1 (Android One)
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • How to block access to the wp-content uploads folder
  • How to add ads.txt on Bluehost
  • Combine two separate files line by line in Notepad++

Recent Posts

  • Can’t connect to Ubuntu with SSH
  • Change Timezone in Ubuntu 20.04 – Simple method
  • Output for timedatectl list-timezones
  • PM2 Cheatsheet – Important Commands
  • MongoDB Terminal commands – Cheatsheet

Archives

Categories

  • Android
  • Apache
  • Blogger
  • Computer Tips
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Notepad++
  • PostgresQL
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Wordpress plugin

Copyright © 2021 ยท Maintained by GokulDeepak