LFCS · Question #274
Which of the following commands is used to display user resource limits?
The correct answer is D. ulimit. The ulimit command is used in Linux to display and modify user resource limits.
Question
Options
- Auname
- Blimit -a
- Cusrlmt
- Dulimit
How the community answered
(25 responses)- A4% (1)
- C4% (1)
- D92% (23)
Why each option
The `ulimit` command is used in Linux to display and modify user resource limits.
The `uname` command displays system information like the kernel name, hostname, and operating system, not user resource limits.
`limit -a` is not a standard command in POSIX-compliant shells like Bash for displaying resource limits; `limit` without `-a` exists in some shells like Csh but `ulimit` is the universal command.
`usrlmt` is not a standard command-line utility for managing or displaying user resource limits in Linux.
The `ulimit` command, a shell built-in, provides control over the resources available to processes started by the current shell. Using `ulimit -a` displays all current soft and hard limits for the user, such as open files, CPU time, and memory.
Concept tested: User resource limits management
Source: https://man7.org/linux/man-pages/man1/bash.1.html#SHELL_BUILTIN_COMMANDS
Topics
Community Discussion
No community discussion yet for this question.