MongoDB Misc

From mi-linux
Revision as of 16:09, 24 October 2016 by Cm1958 (talk | contribs) (Created page with "Main Page >> MongoDB >>MongoDB Workbook >> Misc Commands This page will be updated with useful commands. == Run an OS command == run()...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Main Page >> MongoDB >>MongoDB Workbook >> Misc Commands

This page will be updated with useful commands.

Run an OS command

run() can be used to run command-line programmes from the shell, that is, Linux commands from within the MongoDB shell.

For example, to list your operating system files:

run("ls")

Note, if the command has parat

run("ls", "-l")