Which of the following commands is used in Linux to copy files or directories from one location to another? MCQ with Answer and Explanation

Which of the following commands is used in Linux to copy files or directories from one location to another?
A. rm
B. mv
C. cp
D. ln
Answer: Option C
Solution (By JKSSB Mock Tests)
The 'cp' command is used in Unix-like systems to copy files or entire directory trees from a source path to a destination path.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to change the group ownership of a file?
A. chmod
B. groupmod
C. chown
D. chgrp

Correct Answer: Option D


Explanation:
chgrp changes the group ownership of a file or directory; chown can change both owner and group.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Registry' value type 'REG_DWORD' represents:
A. A string
B. A binary value
C. A 32-bit integer
D. A 64-bit integer

Correct Answer: Option C


Explanation:
REG_DWORD is a 32-bit numeric value; REG_QWORD is 64-bit; REG_SZ is string; REG_BINARY is binary.

This question belongs to: Computer Operating Systems
Question #3
Which Linux command is used to show the system's current date and time?
A. timedatectl
B. clock
C. time
D. date

Correct Answer: Option D


Explanation:
date displays and sets the system date/time; timedatectl is systemd's tool for date/time management.

This question belongs to: Computer Operating Systems