1-18
If you do not specify the
remotefile
argument, names of all the files in the current remote directory are
displayed.
The
ls
command only displays file names on an FTP server. To query other file-related information, for
example, file size, creation date and so on, use the
dir
command.
Related commands:
pwd
.
Examples
# Display the names of all the files in the current directory on the remote FTP server.
[ftp] ls
227 Entering Passive Mode (2,2,2,2,4,4).
125 ASCII mode data connection already open, transfer starting for *.
s3r01.btm
s3r01_15.btm
config.cfg
default.diag
test
test.txt
mytest.bak
a.txt
myopenssh
public
temp.c
swithc001
226 Transfer complete.
FTP: 200 byte(s) received in 0.145 second(s) 1.00Kbyte(s)/sec.
mkdir
Syntax
mkdir
pathname
View
FTP client view
Parameters
pathname
: Name of the directory to be created.
Description
Use the
mkdir
command to create a directory on an FTP server.
Related commands:
dir
,
rmdir
.