Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:47:40+00:00 2026-05-28T20:47:40+00:00

What does Hard / Soft limits mean? Difference on core file size for example:

  • 0

What does Hard / Soft limits mean?

Difference on core file size for example:
ulimit -Sc 1024 versus ulimit -Hc 1024

I usually put in my script ulimit -c unlimited before running a binary.
However, I want to limit the file size to avoid disk full.
And then I wonder on the best way:

ulimit -Sc 1024  # Soft
ulimit -Hc 1024  # Hard
ulimit  -c 1024  # Both

Another advice: What about the value?
ulimit -c 1024 or ulimit -c 10240 or something else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:47:41+00:00Added an answer on May 28, 2026 at 8:47 pm

    The hard limits are usually intended to be set by the system administrator to the largest value they would be comfortable with a handful of users using.

    The soft limits are usually set by the system administrator to the values they’d like everyone to use most of the time. (Consider soft_limit * number_of_users == almost all of the resource available. Leave enough for root to clean up whatever needs to be done, and the users who know how to fiddle with the hard limits to push the boundaries a bit. Sites requiring absolute stability will give hard limits very close to the soft limits.)

    If this is the first time you care, I’d just set the soft limits. That gives you the chance to raise or remove them completely in the same session without requiring you to kill that terminal and all its children.

    I believe the core size limit is in bytes, so both 1024 and 10240 are way too small for all but the silliest programs. I’d start with $(( 100 * 1024 * 1024 )) for most programs just out of lazyness, but if I knew the program was huge (Firefox) I’d go for much larger still.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: What does ||= (or equals) mean in Ruby? It's hard to search
Possible Duplicate: NP vs NP-Complete vs NP-Hard — what does it all mean? Euler
question marks are hard to search for in google. What does this mean step
Does anyone know of a way to issue commands to a hard drive within
Does anyone know when calling 'seek' and 'read' , how is the hard-drive physicly
Does anyone know of an existing browser/OS useragent string grid? It's hard to test,
(I'm sure this is a FAQ, but also hard to google) Why does Python
Using the Settings.app on the iPhone isn't that hard. In fact Xcode does the
The documentation is hard to interpret on this topic. Does this value return me
What is the relationship between ulimit -s <value > and the stack size (at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.