I’ve not tried it myself but you could try what’s mentioned here:
However, this involves making changes to the vagrantfile which isn’t advisable.
For this course, there are handful of commands that you’ll need:
vi - text editor (including the commands to save, quit & save, quit without save)
mkdir - make a directory
rm - remove files (you may need some options like -r)
cat - preview the contents of a file
cd - change to a directory
ls - list files within a directory
cp - copy files
sudo - run the command with elevated privileges (i.e. the superuser)
… and there might be one or two more. All the other commands are related to the mongo shell, mongod process or mongos which you absolutely need unless you have the paid products which are Cloud Manager and Ops Manager.
You can actually already do this. Prepare the config files on your host/local machine, drop them into the
shared sub folder where the vagrantfile is located. That file will then be available in the VM under the /shared/ directory. Try it out and run the following command to see the file.
It would’ve been helpful if all these commands were listed out in Chapter 0.