How to find ulimit for user on Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-find-ulimit-for-user-on-linux/

How can I find the correct ulimit values for a user account or process on Linux systems?