Is it possible to change the: soft limit and hard limit of a specific process? In my case, the process is mongod and a lot of web resources tell me to simply write
ulimit -n in my terminal.
But how will the terminal know that I want to modify only the limits for the mongod process? Do I need to write the command somewhere in particular?
Also, once the above question is solved, is it possible to increase the hard limit since I am assuming that the above command works for the soft limit only.