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

Moving files and directories

To move a file, the mv command can be used. Supply the source file and destination file as parameters to mv in that order. Optionally, a directory can be supplied for the source and the destination or just the destination.

Renaming a file is actually nothing more than moving a file from one name to another. The following command is used to move a file:

packt@PacktPublishing:~$ mv /tmp/testfile /tmp/testdir/moved_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