next up previous contents
Next: cp Up: Helpful Unix Commands Previous: ls   Contents

mv

This command moves files and directories. It has two arguments. The

first is the file or directory you want to move, the second is to where

you want to move it.

lightning:~>mv ~/generic /home/username/moved_file

In this example, generic can be either a file or directory and is being moved from the user's home directory to the directory /home/username and then renamed moved_file. The directory (or file) generic will no longer exist in the user's home directory.



Computer Support Group 2002-10-07