You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

NAME
ren - rename a file or a directory

SYNOPSIS
ren [OPTION] SOURCE DESTINATION

DESCRIPTION
Rename SOURCE to DESTINATION.

OPTIONS
-i
Prompt before overwriting

EXAMPLES
To rename a file
ren foo.sql tariq.sql

To rename a directory
ren foo tariq

To prompt before overwriting an existing file using the rename command, use the -i option:
ren -i /home/tariq/foo.sql /home/sahil/foo.sql

SEE ALSO
mv


  • No labels