- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What happens when you use 'scp' without remote_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
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
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
06-11-2014 01:23 PM - last edited on 06-22-2014 11:55 PM by Maiko-I
06-11-2014 01:23 PM - last edited on 06-22-2014 11:55 PM by Maiko-I
What happens when you use 'scp' without remote_dir?
Greetings,
Does anyone know what happens if you use 'scp' command and NOT specify the remote_dir and though you do specify remote server i.e example below:
root@local # scp local_file remote
What I've discovered that unless to full remote_host:remote_dir is specified, it simply performs a local copy (in the same dir) and creates a file with the name 'remote' exactly as the command below:
root@local # cp local_file remote
So for those who are wondering why it was such a fast copy and where did it went, there's the answer.
Hope that helps,
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking. - Hp Forum Moderator
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2014 02:47 PM
06-11-2014 02:47 PM
Re: What happens when you use 'scp' without remote_dir?
The key there is that there is no ':' character after the "server" name in your example.
If you happened to do the following:
# scp afile server:
The you will get a file named "afile" on the remote server in the home directory of the user doing the copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2014 02:14 PM
06-22-2014 02:14 PM
Re: What happens when you use 'scp' without remote_dir?
That's quite right however my point was 'if' without any 'colins and server path after the hostname' the above happens.