When you forget command line for run something …
you can put it in a .sh file that looks like this.
#!/bin/bash ulimit -n 2048 && mongod
Note that ‘\’ become ‘/’.
You could execute as
or set the x bit on the file
chmod +x myfile.sh
and then just call