nerdexam
CompTIA

LX0-104 · Question #507

Which of the following commands 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 get or set resource limits for the shell process and its child processes, including the maximum size of a core file.

Administrative Tasks

Question

Which of the following commands 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

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    88% (29)
  • D
    6% (2)

Why each option

The `ulimit` command is used to get or set resource limits for the shell process and its child processes, including the maximum size of a core file.

Acore

`core` is not a standard command for managing resource limits or core file sizes; 'core' refers to the core dump file itself.

Bedquota

`edquota` is used to edit user and group disk quotas, which are related to disk space usage for files in general, not specifically core file size limits.

CulimitCorrect

The `ulimit` command, with the -c option, allows an administrator or user to set the maximum size of a core dump file (core file size) that can be generated by a process. This restriction prevents large core files from consuming excessive disk space when a program crashes.

Dquota

`quota` is used to display disk usage and quotas for users or groups, but not to set process resource limits like core file size.

Concept tested: Setting process resource limits (core file size)

Source: https://linux.die.net/man/1/ulimit

Topics

#ulimit#core file#resource limits

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice