102-500 · Question #18
Which of the following commands can be used to limit the amount of memory a user may use?
The correct answer is D. ulimit. ulimit is the correct answer because it is a shell built-in command that controls resource limits for user processes, including maximum memory usage (e.g., ulimit -v 512000 caps virtual memory at 512 MB). umask sets default file permission masks and has nothing to do with…
Question
Options
- Aumask
- Busermod
- Cpasswd
- Dulimit
- Echage
How the community answered
(48 responses)- A2% (1)
- B6% (3)
- C4% (2)
- D71% (34)
- E17% (8)
Explanation
ulimit is the correct answer because it is a shell built-in command that controls resource limits for user processes, including maximum memory usage (e.g., ulimit -v 512000 caps virtual memory at 512 MB). umask sets default file permission masks and has nothing to do with memory. usermod modifies user account properties like groups, home directory, or shell - not resource limits. passwd manages user passwords and account expiration flags. chage controls password aging policies (expiration dates, warning periods) - also unrelated to memory.
Memory tip: Think "u-limit" - the word "limit" is literally in the command name, making it the obvious choice for any question about restricting resource usage.
Topics
Community Discussion
No community discussion yet for this question.