Bug 1600

Summary: scp(1) man page feedback
Product: Portable OpenSSH Reporter: David Gatwood <dgatwood>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 5.2p1   
Hardware: Other   
OS: All   

Description David Gatwood 2009-05-21 07:35:45 AEST
An anonymous web commenter recently pointed out to me that it would be helpful for the scp man page to include an EXAMPLES section with a couple of common use cases.  Not a particularly big deal for me, but it's a trivial enough thing to add, e.g.


.Sh EXAMPLES
.Pp
To copy a local file to a remote server:
.Pp
.Dl Li scp my_local_file.txt me@example.com:remote_name.txt
.Pp
To copy a remote file to the current directory:
.Pp
.Dl Li scp me@example.com:uploaded_files/remote_filename.txt .
.Pp
To copy a directory full of files to a remote server:
.Pp
.Dl Li scp -r local_directory me@example.com:uploaded_files/