Difference between revisions of "MongoDB Misc"

From mi-linux
Jump to navigationJump to search
(Created page with "Main Page >> MongoDB >>MongoDB Workbook >> Misc Commands This page will be updated with useful commands. == Run an OS command == run()...")
 
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
  run("ls")
 
  run("ls")
  
Note, if the command has parat
+
Note, if the command has arguments pass the values as parameters:
 
  run("ls", "-l")
 
  run("ls", "-l")
 +
 +
 +
== Next Step ==
 +
 +
Return to the [[MongoDB_Workbook|Workbook]].

Latest revision as of 16:18, 24 October 2016

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 arguments pass the values as parameters:

run("ls", "-l")


Next Step

Return to the Workbook.