Skip to content

cp

Copies a file or directory.

Terminal window
cp [PATH] [DESTPATH]
  • PATH — specify the path to the file you want to move
  • DESTPATH — specify the path to the directory you want to move the file to
Terminal window
cp /home/volk/someFile /home/volk/someFile.bac

Result:
Copies someFile to /home/volk/someFile.bac