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
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?
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
Summary: I am a novice. My environment is a mixed NT and a SCO UNIX. How can I share a UNIX Directory so that it is accessible from windows clients? Any help is appreciated....
Summary: I'm fairly new to writing shell scripts and I'm working on one now I need help with. I have a test directory that I'm working with so that I won't damage any important files. The directory has 10+ f...
Summary: I like to rename a file based on the first line. Here is an example of what I need to do. File: 034568.dat has 2000 lines with first line as HIOSPAD23409JHK90000 I like to extract 3 characters from 5t...