Next / Previous / Index / TCC 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 Computer Center: Help System
TCC 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, john@nmt.edu
Last updated: 1995/12/04 19:39:34 UT
URL: http://www.nmt.edu/tcc/help/unix/mvpath.html
QR two-dimensional bar code