In this example, the file named “file1.txt” with be copied to a file named “file1.txt.bak” without having to type in the second file name.  This is done using brace expansion.

 In Terminal, enter the command below:

cp file1.txt{,.bak}


You should now have two files:

file1.txt

file1.txt.bak

Marianne Carroll

Marianne began her professional career as a musician, recording and touring as a violinist with the 70’s disco sensation CHIC. She then moved into music management as the Executive Director of the Aston Magna Foundation for Music, which sponsored a Summer classical music festival and NEA-funded cross-cultural educational Academy in the Berkshires as well as a concert series at the Metropolitan Museum.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk