summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authormouring <mouring>2001-02-15 03:22:45 +0000
committermouring <mouring>2001-02-15 03:22:45 +0000
commitb310967bc66a0e55827fb029970c02f783c834d2 (patch)
treed72462ea8ff064e78fd950d54046343f19bd4032 /sftp.1
parent447c94861ec4d02310977f05a7fc48006e45627f (diff)
downloadopenssh-b310967bc66a0e55827fb029970c02f783c834d2.tar.gz
- djm@cvs.openbsd.org 2001/02/14 9:46:03
[sftp-client.c sftp-int.c sftp.1] Fix and document 'preserve modes & times' option ('-p' flag in sftp); ok markus@
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.124
1 files changed, 19 insertions, 5 deletions
diff --git a/sftp.1 b/sftp.1
index 3b9d5124..635c07b2 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sftp.1,v 1.6 2001/02/10 00:45:52 djm Exp $
+.\" $OpenBSD: sftp.1,v 1.7 2001/02/14 09:46:03 djm Exp $
.\"
.\" Copyright (c) 2001 Damien Miller. All rights reserved.
.\"
@@ -94,13 +94,20 @@ to
must be a numeric UID.
.It Ic help
Display help text.
-.It Ic get Ar remote-path Op Ar local-path
+.It Xo Ic get
+.Op Ar flags
+.Ar remote-path
+.Op Ar local-path
+.Xc
Retrieve the
.Ar remote-path
and store it on the local machine.
If the local
path name is not specified, it is given the same name it has on the
-remote machine.
+remote machine. If the
+.Fl P
+flag is specified, then the file's full permission and access time are
+copied too.
.It Ic lls Op Ar ls-options Op Ar path
Display local directory listing of either
.Ar path
@@ -124,11 +131,18 @@ Set local umask to
.It Ic mkdir Ar path
Create remote directory specified by
.Ar path .
-.It Ic put Ar local-path Op Ar remote-path
+.It Xo Ic put
+.Op Ar flags
+.Ar local-path
+.Op Ar local-path
+.Xc
Upload
.Ar local-path
and store it on the remote machine. If the remote path name is not specified,
-it is given the same name it has on the local machine.
+it is given the same name it has on the local machine. If the
+.Fl P
+flag is specified, then the file's full permission and access time are
+copied too.
.It Ic pwd
Display remote working directory.
.It Ic exit