rstatus

Use rstatus to display FTP server status.

Use rstatus remotefile to display detailed information about a specific directory or file on the FTP server.

Syntax

rstatus [ remotefile ]

Views

FTP client view

Predefined user roles

network-admin

mdc-admin

Parameters

remotefile: Specifies a directory or file on the FTP server.

Usage guidelines

You can perform this operation only after you log in to the FTP server.

Support for this command varies with FTP servers.

Examples

# Display FTP server status.

ftp> rstatus
211-FTP server status:
     Connected to 192.168.20.177
     Logged in as root
     TYPE: ASCII
     No session bandwidth limit
     Session timeout in seconds is 300
     Control connection is plain text
     Data connections will be plain text
     At session startup, client count was 1
     vsFTPd 2.0.6 - secure, fast, stable
211 End of status

Table 13: Command output

Filed

Description

211-FTP server status:

Beginning of the display of FTP server status, where 211 specifies the FTP command.

Connected to 192.168.20.177

IP address of the FTP client.

Logged in as root

Login username root.

TYPE: ASCII

File transfer mode ASCII.

Session timeout in seconds is 300

Timeout interval is 300 seconds.

Control connection is plain text

Control connection type is plain text.

Data connections will be plain text

Data connection type is plain text.

At session startup, client count was 1

FTP connection number is 1.

vsFTPd 2.0.6 - secure, fast, stable

FTP version is 2.0.6.

211 End of status

End of the display of FTP server status.

# Display file a.txt.

ftp> rstatus a.txt
213-Status follows:
-rw-r--r--    1 0        0              80 Jul 18 02:58 a.txt
213 End of status

Table 14: Command output

Field

Description

213-Status follows:

Beginning of the display of the file, where 213 specifies the FTP command.

-rw-r--r--

The first bit specifies the file type:

  • -—Common.

  • B—Block.

  • c—Character.

  • d—Directory.

  • l—Symbol connection file.

  • p—Pipe.

  • s—socket.

The second bit through the tenth bit are divided into three groups. Each group contains three characters, representing the access permission of the owner, group, and other users.

  • -—No permission.

  • r—Read permission.

  • w—Write permission.

  • x—Execution permission.

1

Number of connections.

0

Name of the file owner.

0

Group number of the file owner.

80

File size, in bytes.

Jul 18 02:58

Date and time when the file was most recently modified.

a.txt

File name.

213 End of status

End of the display of the file information.