In Linux, the 'nice' command is used to: MCQ with Answer and Explanation

In Linux, the 'nice' command is used to:
A. Change a process's nice value
B. Set the priority of a process (niceness value)
C. All of the above
D. Run a command with a modified scheduling priority
Answer: Option C
Solution (By JKExamLibrary)
nice sets the initial priority; renice changes priority of running processes; all affect scheduling.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1 Report Error
Which of the following is a scheduling algorithm that allows a process to run until it blocks or is preempted by a higher priority process?
A. Preemptive priority scheduling
B. Non-preemptive priority scheduling
C. Round Robin
D. Multilevel feedback queue

Correct Answer: Option B


Explanation:
Non-preemptive priority scheduling allows a process to keep the CPU until it finishes or voluntarily yields, unless a higher priority process arrives (which would preempt in preemptive scheduling).

This question belongs to: Computer Operating Systems
Question #2 Report Error
Which Linux command is used to change the ownership of a file?
A. chown
B. chmod
C. chattr
D. chgrp

Correct Answer: Option A


Explanation:
chown changes the owner and/or group of a file or directory.

This question belongs to: Computer Operating Systems
Question #3 Report Error
Which Linux command is used to permanently set an environment variable?
A. setenv
B. export in .bashrc
C. All of the above
D. export in /etc/profile

Correct Answer: Option C


Explanation:
Environment variables can be set in shell startup files (.bashrc, .profile, /etc/profile) using export.

This question belongs to: Computer Operating Systems