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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store