LPI Linux Essentials (D281 and C851) Practice Exam

Session length

1 / 20

Which command is used to copy files in Linux?

copy

cp

The command used to copy files in Linux is "cp." This command is a fundamental part of the Unix/Linux command line interface and follows the syntax `cp [options] source destination`.

When you use "cp," you can easily create a duplicate of a file or directory in the specified destination. This command provides several options that allow users to control the behavior of the copying process, such as preserving file attributes or copying directories recursively.

The other options provided are not valid commands for copying files in Linux. "copy" is a command used in Windows, "mv" is employed to move files or directories (and can also be used to rename them), and "duplicate" is not a recognized command in standard Linux distributions for performing actions related to file copies. This distinct functionality of "cp" is essential for file management and manipulation within the Linux operating system.

mv

duplicate

Next Question
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy