Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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
Code Block
ren foo.sql tariq.sql

To rename a directory
Code Block
ren foo tariq

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

SEE ALSO
mv