Which of the following commands can be used in Linux to move a file or rename it directly? MCQ with Answer and Explanation

Which of the following commands can be used in Linux to move a file or rename it directly?
A. mv
B. ren
C. rn
D. cp
Answer: Option A
Solution (By JKSSB Mock Tests)
The 'mv' command stands for move and is used in Unix-like systems to either move a file to another path or change its name.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
In Windows, the 'msconfig' utility is primarily used for:
A. Monitoring system performance
B. System configuration (boot options, startup services, etc.)
C. Configuring network settings
D. Managing user accounts

Correct Answer: Option B


Explanation:
msconfig (System Configuration) allows users to modify boot parameters, enable/disable services, and manage startup programs.

This question belongs to: Computer Operating Systems
Question #2
Which Linux command is used to stop a running service (e.g., Apache)?
A. pkill service
B. kill -9 PID
C. systemctl stop service
D. service stop

Correct Answer: Option C


Explanation:
On systemd-based Linux, systemctl stop is used to stop services; older sysvinit used service command.

This question belongs to: Computer Operating Systems
Question #3
Which term describes the operational condition where a CPU is constantly swapping memory pages between RAM and disk, leading to massive system slowdown?
A. Caching
B. Multiprocessing
C. Paging
D. Thrashing

Correct Answer: Option D


Explanation:
Thrashing occurs when virtual memory resources are overused, causing the OS to spend more time moving data between disk and RAM than executing actual application instructions.

This question belongs to: Computer Operating Systems