- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mv command with recursive option for movig dir...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО01-13-2006 07:17 PM
тАО01-13-2006 07:17 PM
"$mv -r olddir newdir" doesn't work.
only "$cp -R sourcedir destinationdir" with recursive option works..right ??
just wanted to move directory and its subdirectory along with files to new locations.
Regards,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2006 07:29 PM
тАО01-13-2006 07:29 PM
Re: mv command with recursive option for movig directory trees
mv olddir newdir
Will move your whole olddir to newdir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2006 07:30 PM
тАО01-13-2006 07:30 PM
Re: mv command with recursive option for movig directory trees
-r is not required to be specified for moving directories using mv command. mv takes both filename and directory names as options.
$mv dir1 dir2
$mv filename dir2
Refer man page for further details.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2006 07:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2006 11:48 PM
тАО01-13-2006 11:48 PM
Re: mv command with recursive option for movig directory trees
"-r" is not required to move recursively. Just simple "mv old new" will do the job for you.
You can take a look at # man mv for more information and examples.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2006 11:50 PM
тАО01-13-2006 11:50 PM
Re: mv command with recursive option for movig directory trees
This doc should be helpful to you.
http://www.centos.org/docs/2/rhl-gsg-en-7.2/s1-managing-working-with-files.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2006 08:09 PM
тАО01-15-2006 08:09 PM
Re: mv command with recursive option for movig directory trees
simply mv olddir newdir
It moves olddir and all its subdirs to newdir.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2006 10:59 PM
тАО01-15-2006 10:59 PM
Re: mv command with recursive option for movig directory trees
http://docs.hp.com/en/B2355-90164/ch02s05.html
http://docs.hp.com/en/B2355-90164/ch02s13.html