The ftpwho
command is used to display information about each current FTP session. It shows the user ID, remote IP address, login time, and other information about the current FTP sessions.
Overview
The ftpwho
command is used to display information about each current FTP session. It can be used to monitor FTP activity on a server and to identify any potential issues. The output of the command shows the following information for each current FTP session:
- User ID
- Remote IP address
- Login time
- Idle time
- Transfer rate
- File name
The ftpwho
command can be used in combination with other commands to perform various tasks. For example, you can use the kill
command to terminate a specific FTP session.
Syntax
ftpwho [options]
Examples
To display information about each current FTP session, simply run the command without any options:
ftpwho
To display information about a specific FTP session, use the -u
option followed by the user ID:
ftpwho -u username
To display information about all FTP sessions except for the ones with a specific user ID, use the -U
option followed by the user ID:
ftpwho -U username
Options
The following options are available for the ftpwho
command:
Option | Description |
---|---|
-u |
Display information about a specific user ID |
-U |
Display information about all users except for the specified user ID |
-h |
Display help information |
-V |
Display version information |
Troubleshooting tips
If you are not seeing any output from the ftpwho
command, it is possible that there are no current FTP sessions. You can try connecting to the server via FTP to create a session and then run the ftpwho
command again.
If you are having trouble terminating a specific FTP session using the kill
command, make sure that you are using the correct process ID (PID) for the FTP session. You can use the ftpwho
command to find the PID for the session you want to terminate.
Notes
- The
ftpwho
command is only available on Linux and Unix systems. - The output of the
ftpwho
command can be customized using the~/.ftpwho
file. This file allows you to specify the columns that are displayed in the output, as well as the order in which they appear.