0% found this document useful (0 votes)
5 views1 page

Copying Files

The course 'Managing Files Using Bash and Z Shell' by Mateo Prigl teaches how to copy files using the cp command. It explains that the command can also copy directories with the recursive option and highlights a specific behavior on macOS regarding trailing slashes. Users are advised to be cautious about how they specify directories when copying.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Copying Files

The course 'Managing Files Using Bash and Z Shell' by Mateo Prigl teaches how to copy files using the cp command. It explains that the command can also copy directories with the recursive option and highlights a specific behavior on macOS regarding trailing slashes. Users are advised to be cautious about how they specify directories when copying.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

"Managing Files Using Bash and Z Shell" course by Mateo Prigl at Pluralsight

Copying Files
$ cp file file_copy

The above command will make a copy of the file and call it file_copy.
You can also copy directories with the r recursive option.
If the last argument is a directory, the file will be copied to that directory. You
can decide if you want to provide a name for the copy or not.
Watch out when you copy directories on macOs. If the directory you want to
copy ends with a slash, that means that only the contents will be copied over,
not the directory itself.

1/1 © Copyright 2020 by Pluralsight

You might also like