Depends on the version of Unix you're running. Some versions will
allow "mv dir dir_new", while others have a specific command for
directories: "mvdir dir dir_new". Sometimes, the 'mvdir' command
is in /etc, check there as well.
-------------------------------------------------------------------------
Steve Thompson | The person who says it cannot be done
'mv' works fine for me, at least on HP-UX.Quote:Beloozerov) writes:
> A Question: how can I rename a directory? Thanks!
> --
mv oldname newname works for me
--
73 de Dave Weingart KB2CWF | "Send lawyers, guns and money!
In the event I am captured or killed, the secretary, the project leader,
the manager and the C.E.O. will disavow any knowledge of my opinions.
May not work if the directory is a mount point, then do a umount first
... and do not forget to change your fstab.
Bye, Juergen
1. deleting or renaming a file inside a directory needs execution permission of that directory?
I think it need not because deleting or renaming a file is
not related to the meta infomation of the file, just related to
to the directory,but actually it needs, why?
2. Running GNU info off CD - how?
3. NEWBIE : rename files in directory
5. move and rename a directory of files on the fly
7. renaming the Desktop directory?
8. can other users read the values of variables set in a script?
9. Renaming mounted directories
10. What is the name of Renamed Directory
11. Renaming files in a directory
12. DOS "rename *.cc *.cpp" in unix
13. Urgent: Rename /usr directory, system can't boot