Every Monday, we'll show you how to do something new and simple with Apple's built-in command line application. You don't need any fancy software, or a knowledge of coding to do any of these. All you need is a keyboard to type 'em out!
We've talked about the cp command in the past, which copies files between locations on your Mac. However, Apple has developed its own (better) implementation of cp. This command, called "ditto," not only copies the files from the source directory to the destination directory, creating the destination directory if it doesn't already exist; but will also merge the contents of the source directory with the destination directory if it does exist. Other niceties of this command are that it will follow symbolic links when copying files, and also preserve the file hard links modes and other metadata. Let's get started copying files with the Ditto command.