Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Moving a file to a different directory

Tech Computer Center logo

Previously, we saw that the mv command can be used to change the name of a file.

The mv command can also be used to move a file from one directory to another. For example, this command would move file ~/potatoes to directory /u/trixie/typos:

    % mv ~/potatoes /u/trixie/typos
After the execution of this command, the pathname of the file should be /u/trixie/typos/potatoes.
Next: Creating a directory
See also: How to organize large collections of files
Previous: Changing your current working directory
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 1995/12/04 19:39:34 UT
QR two-dimensional bar code