Linux Basics

24 / 107

Copy File

To copy files and directories we use the cp command. It's syntax is:

cp source destination

where,

source can contain single or multiple files and directories and

destination can contain a single file or directory.

INSTRUCTIONS

Please make the copy of myfirstfile.txt to myfirstfile_copy.txt by using the command

cp myfirstfile.txt myfirstfile_copy.txt


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...