Sponsored Content
Full Discussion: Help Help
Top Forums UNIX for Dummies Questions & Answers Help Help Post 6769 by LivinFree on Wednesday 12th of September 2001 07:13:12 AM
Old 09-12-2001
If you mean renamed the entire directory, then all you have to do is:
mv old-dir new-dir
You may also need to change ownership if that got changed somehow in the process:
chown user:group new-dir

For more help with those commands, type:
man mv and
man chown. (Press the spacebar to move down a page, the "b" key to move up, and "q" to quit man)

The CD may not be able to be unmounted while a user is accessing it - even if they're just in the same directory as where the CD is mounted it can keep it from unmounting. You will get an error similar to this from the umount command:
/path/to/cdrom : device is busy

In that case, you may need to go as far as kicking all of the users off to make sure none of them are "in your way".

Good luck!
 
mvdir(1M)																 mvdir(1M)

NAME
mvdir - move a directory SYNOPSIS
dir newdir DESCRIPTION
moves one directory tree into another existing directory (within the same file system), or renames a directory without moving it. dir must be an existing directory. If newdir does not exist but the directory that would contain it does, dir is moved and/or renamed to newdir. Otherwise, newdir must be an existing directory not already containing an entry with the same name as the last pathname component of dir. In this case, dir is moved and becomes a subdirectory of newdir. The last pathname component of dir is used as the name for the moved directory. refuses to move dir if the path specified by newdir would be a descendent directory of the path specified by dir. Such cases are not allowed because cyclic sub-trees would be created as in the case, for example, of which is prohibited. does not allow directory to be moved. Only users who have appropriate privileges can use EXTERNAL INFLUENCES
International Code Set Support Single- and multi-byte character code sets are supported. AUTHOR
was developed by OSF and HP. SEE ALSO
cp(1), mkdir(1), mv(1). STANDARDS CONFORMANCE
mvdir(1M)
All times are GMT -4. The time now is 09:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy