QuestionQ167

VerifiedEssential Commands

Which command can be used to restrict how much memory a user is allowed to use?

Explanation

The ulimit shell built-in command controls the resources available to processes started by the shell, including memory usage. Options such as -v (virtual memory), -m (max resident set size), and -d (data segment size) let an administrator or user cap the amount of memory a user's processes can consume. The other commands serve different purposes: umask sets default file creation permissions, usermod modifies user account attributes, passwd manages passwords, and chage controls password expiration settings — none of them affect memory limits.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!