Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pls advice

Status
Not open for further replies.

CAF786

MIS
Aug 1, 2005
29
US
#/dev/dsk/c0t0d0s5 7056714 62424 6923723 1% /test

#cd /test
#ls
test1
#cd test1
#ls
one two three four

HOW CAN I CHANGE /test TO /test1
 
Directory test is just a mount point. On the partition c0t0d0s5, you have a directory test1 and files or subdirectories "one two three four" under it. If you want test1 to become the top directory, move all files/directories out of directory test1. Once you do this, you should be able to run a ls on test and see:

cd test
ls
test1 one two three four.

Remove directory test1
rmdir test1

unmount /dev/dsk/c0t0d0s5
mv test test1

cd /etc
vi vfstab

The entry for c0t0d0s5, change the mount point to test1

mountall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top