1Z0-460 · Question #51
View the output below. As oracle user, you run the following command on your Oracle Linux 6 system: [oracle@dbhost ~ ] $ [oracle@dbhost ~] $ nice - - 10 ./myscript.sh & [1] 2735 [oracle@dbhost ~] $…
The correct answer is C. A negative nice value can be set by the root user. Only a privileged user may run a process with lower niceness: $ nice -n -1 nice nice: cannot set niceness: Permission denied $ sudo nice -n -1 nice Note:Sudo stands for either "substitute user do" or "super user do" (depending upon how you want to look at it). What sudo does is…
Question
View the output below. As oracle user, you run the following command on your Oracle Linux 6 system:
[oracle@dbhost ~ ] $ [oracle@dbhost ~] $ nice - - 10 ./myscript.sh & [1] 2735 [oracle@dbhost ~] $ nice: cannot set niceness: permission denied Why is the nice command failing?
Options
- AShell scripts cannot be assigned a negative nice value.
- BThere is already another process running with same niceness value on this system.
- CA negative nice value can be set by the root user.
- DA nice value of -10 is not the permissible niceness range.
How the community answered
(59 responses)- A5% (3)
- B2% (1)
- C81% (48)
- D12% (7)
Explanation
Only a privileged user may run a process with lower niceness: $ nice -n -1 nice nice: cannot set niceness: Permission denied $ sudo nice -n -1 nice Note:Sudo stands for either "substitute user do" or "super user do" (depending upon how you want to look at it). What sudo does is incredibly important and crucial to many Linux distributions. Effectively, sudo allows a user to run a program as another user (most often the root user).
Topics
Community Discussion
No community discussion yet for this question.