Subject: Renaming or Moving an Existing File

Software Category: system
Supported by: ACS


Description:

Renaming allows you to change the name of a file or move it to another location.


Getting Started:

At a UNIX prompt, enter the command

mv oldname newname

replacing oldname with the original filename, and replacing newname with the new name you want to give to the file.

If you simply want to move the file, specify the original file name then the location. For example, if you have a file in your home directory and you want to move it to your public directory, you'd enter the following command from your home directory:

mv file.txt private

mv stands for move.


Documentation:

There is an on line manual page. To read it, enter the command man mv at a UNIX prompt.

For general information about working with files, refer to Memo RPI.113, Using UNIX: The Rensselaer Computing System (RCS).


Return to ACS Consulting home page.

Return to the General System page.


Return to ACS home page.


Please send comments and suggestions to

consult@rpi.edu