nerdexam
LPI

102-500 · Question #90

Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

The correct answer is D. ulimit. ulimit is the correct answer because it is the shell built-in command that controls resource limits for processes in a user's session, including the maximum size of core dump files (set with ulimit -c). edquota and quota are disk quota management tools that control filesystem…

Shells and Shell Scripting

Question

Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Options

  • Acore
  • Bedquota
  • Cquota
  • Dulimit
  • Ektrace

How the community answered

(56 responses)
  • A
    5% (3)
  • B
    4% (2)
  • C
    2% (1)
  • D
    80% (45)
  • E
    9% (5)

Explanation

ulimit is the correct answer because it is the shell built-in command that controls resource limits for processes in a user's session, including the maximum size of core dump files (set with ulimit -c). edquota and quota are disk quota management tools that control filesystem space and inode usage for users, not process resource limits. core is not a standard Unix command - it's just the name of the dump file itself. ktrace is a BSD kernel tracing utility used to record system calls, not to set resource limits.

Memory tip: Think of ulimit as "user limits" - it's the one command that puts a ceiling on what system resources a user's processes can consume, including CPU time, file sizes, and yes, core dump sizes.

Topics

#ulimit#core files#resource limits#user restrictions

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice