PitaJ is correct, that's a text file that you need to edit. The description that you wrote tells all of the details... the two lines given are to be appended to the end of that file. Means the same thing on Linux as it does on Windows or macOS: open a text editor and stick those on the bottom of that file.
You'll need to restart MongoDB after you make that change for it to pick it up.