LFCS · Question #13
Which of the following commands can be used to limit the amount of memory a user may use?
The correct answer is C. ulimit. The ulimit command is used to set or report resource limits for the current shell and its child processes, including the amount of memory a user or process may use.
Question
Options
- Aumask
- Busermod
- Culimit
- Dpasswd
- Echage
How the community answered
(31 responses)- A6% (2)
- C90% (28)
- E3% (1)
Why each option
The ulimit command is used to set or report resource limits for the current shell and its child processes, including the amount of memory a user or process may use.
umask sets the default file permissions for newly created files and directories, not memory limits.
usermod is used to modify user account properties, such as username, home directory, or shell, but not runtime resource limits like memory.
The ulimit command allows users and system administrators to control resource limits, such as memory usage (e.g., using -m for virtual memory or -v for data segment size) and CPU time, for processes started from the current shell session. These limits prevent processes from consuming excessive system resources and affecting overall system stability.
passwd is used to change a user's password.
chage is used to change user password expiry information.
Concept tested: Process resource limits ulimit
Source: https://man7.org/linux/man-pages/man1/ulimit.1p.html
Topics
Community Discussion
No community discussion yet for this question.