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. cp
B. ln
C. mv
D. rm
Answer: Option A
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
What is the purpose of the 'initrd' or 'initramfs' image file during the Linux booting phase?
A. To act as a desktop wallpaper storage module.
B. To run background cron jobs before initialization.
C. To provide a temporary root file system in RAM containing essential storage drivers needed to mount the real root file system.
D. To compile user space terminal environments.

Correct Answer: Option C


Explanation:
initramfs acts as an initial RAM file system that equips the booting kernel with necessary hardware and storage controller drivers to read the actual disk partition.

This question belongs to: Computer Operating Systems
Question #2
In Linux, the 'export' command is used to:
A. All of the above
B. Make a variable global
C. Display environment variables
D. Set environment variables that are passed to child processes

Correct Answer: Option A


Explanation:
export makes shell variables available to subprocesses; without options, it lists exported variables.

This question belongs to: Computer Operating Systems
Question #3
Which of the following is a technique used to reduce fragmentation in memory?
A. Paging
B. Segmentation
C. Swapping
D. Compaction

Correct Answer: Option D


Explanation:
Compaction moves processes to create contiguous free space, reducing external fragmentation; paging eliminates external fragmentation.

This question belongs to: Computer Operating Systems