Make a copy of a file and give it a different name mac terminal Make a copy of a file and give it a different name mac terminal shell shell

Make a copy of a file and give it a different name mac terminal


cp can get a name of a target file:

cp bla.txt ./bla2.txt

Or even simpler, as Mark noted:

cp bla.txt bla2.txt