Forrest logo
back to the cp tool

cp:ai:954e4

cp file to another folder with new name
$ cp ${filename} /path/to/destination/new_name.txt
try on your machine

Copy the file.txt to the /path/to/destination folder with the new name new_name.txt

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • cp file to another folder with new name?
back to the cp tool