title: Limiting the memory usage of a program in Linux
body: <p>I'm new to Linux and Terminal (or whatever kind of command prompt it uses), and I want to control the amount of RAM a process can use. I already looked for hours to find an easy-t-use guide. I have a few requirements for limiting it:</p>
  
  <ol>
  <li>Multiple instances of the program will be running, but I only want to limit some of the instances.</li>
  <li>I do not want the process to crash once it exceeds the limit. I want it to use HDD page swap.</li>
  <li>The program will run under WINE, and is a .exe.</li>
  </ol>
  
  <p>So can somebody please help with the command to limit the RAM usage on a process in Linux?</p>