LX0-104 · 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 shell and processes started from it, including memory usage.
Question
Options
- Aumask
- Busermod
- Culimit
- Dpasswd
- Echage
How the community answered
(59 responses)- A5% (3)
- B2% (1)
- C92% (54)
- D2% (1)
Why each option
The `ulimit` command is used to set or report resource limits for the shell and processes started from it, including memory usage.
`umask` sets the default file permission mask for newly created files and directories.
`usermod` modifies user account properties, such as username, home directory, or shell.
The `ulimit` command allows users to view or modify shell resource limits, such as the maximum amount of virtual memory a process can use, commonly set using options like `-v`. These limits restrict various system resources available to processes, including CPU time, file size, and memory.
`passwd` is used to change a user's password.
`chage` is used to change user password expiry information.
Concept tested: Linux resource limits (ulimit)
Source: https://man7.org/linux/man-pages/man1/ulimit.1p.html
Topics
Community Discussion
No community discussion yet for this question.