- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: moving directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:42 PM
03-02-2005 08:42 PM
moving directory
I have two directory: test and test1
I want to change the name of the first one "test" to "test1", but the command "mv" transfert "test" directory into "test1".
Please any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:43 PM
03-02-2005 08:43 PM
Re: moving directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:53 PM
03-02-2005 08:53 PM
Re: moving directory
You want test to be renamed to test1? But you can't have two directories with the same name in same location ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:53 PM
03-02-2005 08:53 PM
Re: moving directory
can you please confirm:
two directories (test and test1)
you want to rename the test dir to test1
what uis to happen with any data in test1?
otherwise:
rm -r test1
mv test test1
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 09:05 PM
03-02-2005 09:05 PM
Re: moving directory
We suppose that all directories are empty.
Here what I do not to launch:
mv test1 toto
mv test test1
I search a command that rename test to test1 whitout renaming the test1 directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 09:08 PM
03-02-2005 09:08 PM
Re: moving directory
The only way to it, it's to remove test1 or to rename it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 09:17 PM
03-02-2005 09:17 PM
Re: moving directory
if your directories are empty you can remove the temp1 directory and then mv (rename) the test directory to test1.
Start situation, directories:
test test1
conmmand: rm test1
This leaves directory
test
command: mv test test1
This leaves directory
test1
So you have moved test to test1!
Try the process in /tmp
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 10:31 PM
03-03-2005 10:31 PM
Re: moving directory
I think there is no solution about what I search.
I have copied the content of tes directory to test1 one.
Thank's again.