Changing the name or location of a directory |
|
If you decide to change the name of a directory, or move it to
a different location in your file structure, you can use the
mv command.
For example, if you have a directory whose relative pathname is
bob/ray and you want to change it to bob/dobbs,
you could use this command:
% mv bob/ray bob/dobbs
As another example, to move directory bob/dobbs so
that it then lives in directory /u/gene/pickle:
% mv bob/dobbs /u/gene/pickle
There are some restrictions on where you can move a directory. If you try to move a directory and you get a message something like "cannot move file across filesystems", please ask a system programmer for advice.