Skip to content
linscpSecure file transfer for Linux and Windows
GitHub

commands

mv

Move or rename remote files.

Generated from linscp 0.6.1
mv <remote-file>... <remote-target>

Moves files and directories within the server, or renames them. The last argument is the destination:

  • a directory with a trailing / keeps the names;
  • a plain name renames a single file;
  • an operation mask such as *.old renames each file it is applied to.

A directory and a name or mask can be combined: /srv/archive/*.old. The sources may contain masks. mv does not replace an existing file at the destination.

Also available as rename.

failonnomatch (see option).

Terminal window
mv /var/www/html/index.html /var/www/html/index.old
mv /srv/incoming/*.csv /srv/processed/