85
Views
FTP client view
Predefined user roles
network-admin
Parameters
remotefile
: Specifies the name of a file or directory on the FTP server.
localfile
: Specifies the name of the local file used for saving the displayed information.
Usage guidelines
You can perform this operation only after you log in to the FTP server.
In FTP client view, executing the
dir
command is the same as executing the
ls
command.
Examples
# Display detailed information about the files and subdirectories in the current directory on the FTP
server.
ftp> dir
227 Entering Passive Mode (10,153,116,114,11,9)
150 File Listing Follows in ASCII mode
drwxrwxrwx 1 noone nogroup 0 Apr 8 15:15 .
drwxrwxrwx 1 noone nogroup 0 Apr 8 15:15 ..
-rwxrwxrwx 1 noone nogroup 6324 Apr 8 14:48 1.txt
-rwxrwxrwx 1 noone nogroup 97401856 Feb 27 12:28 12900.ipe
drwxrwxrwx 1 noone nogroup 0 Mar 26 14:30 Compatiable
drwxrwxrwx 1 noone nogroup 0 Mar 26 14:30 Incompatiable
drwxrwxrwx 1 noone nogroup 0 Apr 1 15:34 aa
226 Transfer finished successfully.
# Save detailed information about file
a.txt
to
s.txt
.
ftp> dir a.txt s.txt
output to local-file: s.txt ? [Y/N]y
227 Entering Passive Mode (10,153,116,114,11,34)
150 File Listing Follows in ASCII mode
226 Transfer finished successfully.
# Display the content of file
s.txt
.
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
<Sysname> more s.txt
-rwxr-xr-x 1 0 0 1481 Jul 7 12:34 a.txt
Related commands
ls
disconnect
Use
disconnect
to terminate the connection to the FTP server without exiting FTP client view.