title: Meaning of ulimit Hard (-H) and Soft (-S)
body: <p>What does <strong>Hard</strong> / <strong>Soft</strong> limits mean?</p>
  
  <p>Difference on core file size for example:<br>
  <code>ulimit -Sc 1024</code> versus <code>ulimit -Hc 1024</code></p>
  
  <p>I usually put in my script <code>ulimit -c unlimited</code> before running a binary.<br>
  However, I want to limit the file size to avoid disk full.<br>
  And then I wonder on the best way:</p>
  
  <pre><code>ulimit -Sc 1024  # Soft
  ulimit -Hc 1024  # Hard
  ulimit  -c 1024  # Both
  </code></pre>
  
  <p>Another advice: What about the value?<br>
  <code>ulimit -c 1024</code> or <code>ulimit -c 10240</code> or something else?</p>