O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Copying files and directories

To copy a file, the cp command can be used. Copying a file, you need to supply the source file and the destination file as parameters to cp in that order. Optionally, a directory can be supplied instead of a file to copy a directory. While copy takes many options, which the manual page explains in detail, the -r option can be important when dealing with directories, as it tells copy to recursively copy a directory and everything underneath it. The following command shows the use of the copy command:

packt@PacktPublishing:~$ cp /tmp/testfile /tmp/testdir/copy_of_testfile

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required