Linux

mv

CautionMove/rename

mv <src> <dest>

Moves or renames files/dirs.

Examples

  • mv old.log archive/old.logMove and rename

Syntax

mv <src> <dest>

Before you run it

May overwrite; use -i to confirm.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store