summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorben <ben@FreeBSD.org>2000-07-12 19:00:50 +0000
committerben <ben@FreeBSD.org>2000-07-12 19:00:50 +0000
commit3fba8415bf62d206560391671253b0e53a93adb0 (patch)
tree41a9e99f16e2279545c31adbf2ed12e04a39c6e1
parentf965e9b8667ffdffde50c7c3a79573e2e493addc (diff)
downloadFreeBSD-src-3fba8415bf62d206560391671253b0e53a93adb0.zip
FreeBSD-src-3fba8415bf62d206560391671253b0e53a93adb0.tar.gz
"ls" is note the same as "nlist", but it is the same as "dir". Correct
this, and add a bit to the descriptions of "dir" and "nlist" to emphasize the difference. PR: 15408 Submitted by: Joe Smith <inwap@best.com>
-rw-r--r--usr.bin/ftp/ftp.148
1 files changed, 30 insertions, 18 deletions
diff --git a/usr.bin/ftp/ftp.1 b/usr.bin/ftp/ftp.1
index 43a637d..e511993 100644
--- a/usr.bin/ftp/ftp.1
+++ b/usr.bin/ftp/ftp.1
@@ -297,6 +297,11 @@ If no local file is specified, or if
is
.Sq Fl ,
the output is sent to the terminal.
+.Pp
+As this command provides extra information which is system-dependent,
+you should use the
+.Ic nlist
+command instead if you only want a plain list of files.
.It Ic disconnect
A synonym for
.Ic close .
@@ -419,22 +424,8 @@ A synonym for
.It Ic lpwd
Print the working directory on the local machine.
.It Ic \&ls Op Ar remote-directory Op Ar local-file
-Print a list of the files in a
-directory on the remote machine.
-If
-.Ar remote-directory
-is left unspecified, the current working directory is used.
-If interactive prompting is on,
-.Nm
-will prompt the user to verify that the last argument is indeed the
-target local file for receiving
-.Ic ls
-output.
-If no local file is specified, or if
-.Ar local-file
-is
-.Fl ,
-the output is sent to the terminal.
+A synonym for
+.Ic dir .
.It Ic macdef Ar macro-name
Define a macro.
Subsequent lines are stored as the macro
@@ -543,8 +534,29 @@ exist on the current system, the remote file is considered
Otherwise, this command is identical to
.Ar get .
.It Ic nlist Op Ar remote-directory Op Ar local-file
-A synonym for
-.Ic ls .
+Print a list of the files in a
+directory on the remote machine.
+If
+.Ar remote-directory
+is left unspecified, the current working directory is used.
+If interactive prompting is on,
+.Nm
+will prompt the user to verify that the last argument is indeed the
+target local file for receiving
+.Ic ls
+output.
+If no local file is specified, or if
+.Ar local-file
+is
+.Fl ,
+the output is sent to the terminal.
+.Pp
+Note that this command only returns the filenames in the remote
+directory. If you wish to see more information about the files (often
+size, modification time, and so on),
+you should use the
+.Ic dir
+command instead.
.It Ic nmap Op Ar inpattern outpattern
Set or unset the filename mapping mechanism.
If no arguments are specified, the filename mapping mechanism is unset.
OpenPOWER on IntegriCloud