Computing.Net > Forums > Unix > Help renaming a complete directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help renaming a complete directory

Reply to Message Icon

Name: jug
Date: April 19, 2005 at 12:38:57 Pacific
OS: Unix
CPU/Ram: ?
Comment:

I am trying to rename an existing directory on an HP-Unix server. The disk was cleaned up of any data so there is nothing on it at all. I need to use that disk to install Oracle, but am looking to name the directory consistant with other Oracle installs.

Do I need to unmount the disk, rename it in the fstab file and then remount it? Or do I need to use SAM. I have root access, but I am by no means a unix sa. Everywhere I worked previously had full time unix sa that took care of things like that ... but to my surprise not here.

Will any of this require a reboot or have any effect on the other disks that are being utilized? Can all this be done without effecting users?

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Luke Chi
Date: April 19, 2005 at 13:06:56 Pacific
Reply:

http://unix.ittoolbox.com/groups/groups.asp?v=SOLARIS-L&i=73136

Luke Chi


0

Response Number 2
Name: Dlonra
Date: April 20, 2005 at 06:15:16 Pacific
Reply:

if you want to rename a directory in the same file system, and you have the permissions:

mv OldDir NewDir


0

Response Number 3
Name: ravi.kumar
Date: April 28, 2005 at 05:08:34 Pacific
Reply:

Hi,

check whether the dir to be renamed is a mount point or not (df -k), if it is not a mount point then
#mv dir new-dir
else
#mv dir new-dir and then
#sed 's/dir/new-dir/g' /etc/fstab
would do

Hello I am working extensively on SCM and Unix


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Help renaming a complete directory

Sharing a UNIX Directory www.computing.net/answers/unix/sharing-a-unix-directory/1725.html

Help writing a unix script www.computing.net/answers/unix/help-writing-a-unix-script/7425.html

How to rename a file based 1st line www.computing.net/answers/unix/how-to-rename-a-file-based-1st-line/8125.html