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.
Question
Options
- Acore
- Bedquota
- Culimit
- Dquota
How the community answered
(18 responses)- C94% (17)
- D6% (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.
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.
edquota is used to edit user and group disk quotas, which limit disk space usage, not the size of core files.
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.
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
Community Discussion
No community discussion yet for this question.