In Linux, the command 'rm -rf' is used to: MCQ with Answer and Explanation

In Linux, the command 'rm -rf' is used to:
A. Forcefully remove directories and their contents recursively
B. Read a file forcefully
C. Rename a file
D. Remove empty directories only
Answer: Option A
Solution (By JKExamLibrary)
rm -rf (remove recursively and forcefully) deletes directories and files without confirmation, so it's dangerous.

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 Linux command is used to change the permissions of a file with symbolic notation?
A. All of the above
B. chmod g+w file
C. chmod u+x file
D. chmod o-r file

Correct Answer: Option A


Explanation:
chmod accepts symbolic mode like u+x (add execute for owner), g+w (add write for group), o-r (remove read for others).

This question belongs to: Computer Operating Systems
Question #2 Report Error
What is the function of the Android 'Power Manager'?
A. To control screen brightness
B. To manage device power states and battery optimization
C. To handle CPU frequency scaling
D. To manage network connectivity

Correct Answer: Option B


Explanation:
Power Manager controls power-saving features, sleep modes, and monitors battery usage to extend battery life.

This question belongs to: Computer Operating Systems
Question #3 Report Error
What type of operating system design runs a single application loop directly on hardware without processing delays, frequently used in automotive anti-lock brakes?
A. Time-Sharing Framework
B. Network OS Shell
C. Real-Time Operating System (RTOS)
D. Batch Processing OS

Correct Answer: Option C


Explanation:
An RTOS provides deterministic response timing guarantees necessary for critical automation tasks like braking loops or medical telemetry.

This question belongs to: Computer Operating Systems