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.
Question
Options
- Acore
- Bedquota
- Culimit
- Dquota
How the community answered
(39 responses)- A3% (1)
- B5% (2)
- C92% (36)
Why each option
The `ulimit` command is used to manage system resource limits for processes, including the maximum size of core files.
`core` is not a standard Linux command for setting resource limits; it typically refers to the core file itself.
`edquota` is used to edit user and group disk quotas, which limits disk space usage, not core file size.
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.
`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
Community Discussion
No community discussion yet for this question.