Specifying path of data directory

I’ve usually ran mongodb by typing mongod. I get this when I type mongod