- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp or cp on same machine, any difference
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
тАО08-18-2008 09:38 PM
тАО08-18-2008 09:38 PM
rcp or cp on same machine, any difference
Hi,
Is there any difference if I use rcp instead of cp on same machine for copying large files?
Apreicate if someone can throw some lights.
Thanks
- Tags:
- rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 10:23 PM
тАО08-18-2008 10:23 PM
Re: rcp or cp on same machine, any difference
In short rcp will take a bit longer compared to cp in localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 10:27 PM
тАО08-18-2008 10:27 PM
Re: rcp or cp on same machine, any difference
There are many differences within these two methods, hint is following.
*)The NFS CP will bring the source file into the buffer cache, _and_ will have the destination file in the buffer cache. The rcp will only bring the source file into the buffer cache.
*) rcp is over TCP
Regards,
Gokul Chandola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 11:18 PM
тАО08-18-2008 11:18 PM
Re: rcp or cp on same machine, any difference
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 03:20 AM
тАО05-04-2009 03:20 AM
Re: rcp or cp on same machine, any difference
rcp means remote copy
cp means copying
rcp is mainly using to copy from system to anohter
while cp is using internal in system
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 03:24 AM
тАО05-04-2009 03:24 AM
Re: rcp or cp on same machine, any difference
rcp between machines
cp within one system.
cp is a bit more reliable.
rcp won't copy properly to the same system. Why would you use it to run a local copy through the system NIC card?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 03:32 AM
тАО05-04-2009 03:32 AM
Re: rcp or cp on same machine, any difference
rcp(1) rcp(1)
NAME
rcp - remote file copyDESCRIPTION
The rcp command copies files, directory subtrees, or a combination of files and directory subtrees from one or more systems to another.
After reading that, I wouldn't even think to use it within one system. I mean, "why"????
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 05:07 AM
тАО05-04-2009 05:07 AM
Re: rcp or cp on same machine, any difference
between
rcp
cp from or to NFS
Then rcp is usually better as it sends directly the file from buffercache to the socket.
cp will cause a copy from buffercache to user space, hen from userspace to buffercache, then from buffercache over NFS to the remote system, then to disk