@@ -5,10 +5,8 @@ Getting Started with the ``mongo`` Shell
5
5
.. default-domain:: mongodb
6
6
7
7
This document provides a basic introduction to using the
8
- :program:`mongo` shell. See :doc:`/tutorial/getting-started` for an
9
- introduction to basic MongoDB operations and use. See
10
- :doc:`/installation` for instructions on installing MongoDB for your
11
- system.
8
+ :program:`mongo` shell. See :doc:`/installation` for instructions on
9
+ installing MongoDB for your system.
12
10
13
11
Start the ``mongo`` Shell
14
12
-------------------------
@@ -61,12 +59,12 @@ available options.
61
59
When starting, :program:`mongo` checks the user's :envvar:`HOME`
62
60
directory for a JavaScript file named :ref:`.mongorc.js
63
61
<mongo-mongorc-file>`. If found, :program:`mongo` interprets the
64
- content :file:`.mongorc.js` before displaying the prompt for
65
- the first time. If you use the shell to evaluate a JavaScript file
66
- or expression either on the command line with :option:`--eval` or
67
- by specifying :ref:`a .js file to mongo <mongo-shell-file>`,
68
- :program:`mongo` will read the ``.mongorc.js`` file *after* the
69
- JavaScript has finished processing.
62
+ content of :file:`.mongorc.js` before displaying the prompt for the
63
+ first time. If you use the shell to evaluate a JavaScript file or
64
+ expression, either by using the :option:`--eval` option on the
65
+ command line or by specifying :ref:`a .js file to mongo
66
+ <mongo-shell-file>`, :program:`mongo` will read the ``.mongorc.js``
67
+ file *after* the JavaScript has finished processing.
70
68
71
69
.. _mongo-shell-executing-queries:
72
70
@@ -80,7 +78,7 @@ From the :program:`mongo` shell, you can use the :doc:`shell methods
80
78
81
79
db.<collection>.find()
82
80
83
- - The ``db`` is a variable that refers to the current database.
81
+ - The ``db`` refers to the current database.
84
82
85
83
- The ``<collection>`` is the name of the collection to query. See
86
84
:ref:`mongo-shell-help-collection` to list the available collections.
@@ -105,7 +103,7 @@ From the :program:`mongo` shell, you can use the :doc:`shell methods
105
103
first 20 documents that match the query. The :program:`mongo` shell
106
104
will prompt ``Type it`` to iterate another 20 times.
107
105
108
- You can set the ``DBQuery.shellBatchSize`` variable to change the
106
+ You can set the ``DBQuery.shellBatchSize`` attribute to change the
109
107
number of iteration from the default value ``20``, as in the
110
108
following example which sets it to ``10``:
111
109
0 commit comments