Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146912302
D51277.id158362.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D51277.id158362.diff
View Options
diff --git a/crypto/openssh/scp.1 b/crypto/openssh/scp.1
--- a/crypto/openssh/scp.1
+++ b/crypto/openssh/scp.1
@@ -294,6 +294,24 @@
.El
.Sh EXIT STATUS
.Ex -std scp
+.Sh EXAMPLES
+Copy local file to remote host
+.Pp
+.D1 scp ./localfile.txt user@remotehost:/path/to/destfile.txt
+.Pp
+Copy local file to remote host home directory (will copy localfile.txt to
+~/localfile.txt on the remote host)
+.Pp
+.D1 scp ./localfile.txt user@remotehost:
+.Pp
+Copy file from remote host to local host
+.Pp
+.D1 scp user@remotehost:/var/log/auth.log /path/on/my/local/machine
+.Pp
+Copy folder recursive from remote host to local host
+(creates nginx folder locally)
+.Pp
+.D1 scp -r user@remotehost:/var/log/nginx ./
.Sh SEE ALSO
.Xr sftp 1 ,
.Xr ssh 1 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 7, 5:07 PM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29375593
Default Alt Text
D51277.id158362.diff (751 B)
Attached To
Mode
D51277: Add examples section to scp man page
Attached
Detach File
Event Timeline
Log In to Comment