Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Copy without overriding existing files

The cp command has a -n flag that you can use to prevent the copied file from overriding another file if one with the same name exists

When a naming collision occurs and the -n flag is present, the copy command does nothing