nerdexam
CompTIA

LX0-104 · Question #18

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 C. ulimit. The ulimit command is used to manage system resource limits for processes, including the maximum size of core files.

Administrative Tasks

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
  • Culimit
  • Dquota

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    92% (36)

Why each option

The `ulimit` command is used to manage system resource limits for processes, including the maximum size of core files.

Acore

`core` is not a standard Linux command for setting resource limits; it typically refers to the core file itself.

Bedquota

`edquota` is used to edit user and group disk quotas, which limits disk space usage, not core file size.

CulimitCorrect

The `ulimit -c` command specifically controls the maximum size of a core file that can be created by a process. Core files are dumps of a process's memory space at the time of a crash, and limiting their size helps manage disk space and security. By setting this limit, administrators or users can prevent excessively large core files from consuming system resources or restrict core file generation entirely.

Dquota

`quota` is used to display disk usage and quotas, not to set core file size limits.

Concept tested: Linux core file size limit (ulimit)

Source: https://man7.org/linux/man-pages/man1/ulimit.1p.html

Topics

#resource limits#ulimit#core dump#system administration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice