nerdexam
Linux_Foundation

LFCS · 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 set or display resource limits for processes, including the maximum size of a core file that can be created when a program crashes.

Submitted by helene.fr· Apr 18, 2026Essential Commands

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

(18 responses)
  • C
    94% (17)
  • D
    6% (1)

Why each option

The ulimit command is used to set or display resource limits for processes, including the maximum size of a core file that can be created when a program crashes.

Acore

There is no standard Linux command named 'core' that directly sets core file size restrictions; 'core' is a term referring to a crash dump file.

Bedquota

edquota is used to edit user and group disk quotas, which limit disk space usage, not the size of core files.

CulimitCorrect

The ulimit command allows administrators to control process resource limits, including the core file size, using the '-c' option. Setting a limit on the core file size can prevent large crash dumps from consuming excessive disk space, while a value of 0 typically prevents core files from being created.

Dquota

quota is used to report disk usage and quotas for users and groups, not to set core file size limits.

Concept tested: Core file size limit ulimit

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

Topics

#ulimit#core file#resource limits#shell limits

Community Discussion

No community discussion yet for this question.

Full LFCS Practice