Linux Comm Ftpwho
# Linux ftpwho Command
[ Linux Command Manual](#)
The Linux `ftpwho` command is used to display information about all users currently logged in via FTP.
Executing this command allows you to see which users are currently logged into the system via FTP and what operations they are performing.
### Syntax
ftpwho
**Common Options:**
* `-h` or `--help`: Display help information.
* `-V` or `--version`: Display version information.
### Examples
To query which users are currently logged into the FTP server, you can use the following command directly:
ftpwho
This command will produce output similar to the following:
After executing this command, you will see output similar to this:
Service class all: 10000 ? S 0:00 proftpd: (accepting connections) 10001 ? S 0:00 proftpd: user1 - idle 10002 ? S 0:00 proftpd: user2 - uploading file.txt
**Output Explanation:**
* **First Column**: Process ID (PID), representing the process identifier for each FTP session.
* **Second Column**: Terminal Identifier (TTY), usually `?`, indicating no associated terminal.
* **Third Column**: Process Status (STAT), indicating the current state of the process.
* **Fourth Column**: CPU Time (TIME), indicating the CPU time consumed by the process.
* **Fifth Column**: Process Name and User Information, displaying the name of the FTP service and the username and status of the current connection.
**Advanced Usage of the `ftpwho` Command**
If your system is running multiple FTP service instances, you can view user information for a specific service by specifying the service class. For example:
ftpwho -s proftpd
This will only display user connection information related to the `proftpd` service.
Some FTP servers support displaying more detailed user information, including the user's IP address, connection time, etc. You can view this with the following command:
ftpwho -v
This will display more detailed output, helping you better understand the connection status of each user.
* * *
### Common Issues and Solutions
If you encounter problems while executing the `ftpwho` command, it may be due to the following reasons:
* **FTP Service Not Installed or Not Running**: Ensure that the FTP service is installed and running on your system.
* **Insufficient Permissions**: The `ftpwho` command typically requires administrator privileges to execute. You can try using `sudo` to elevate permissions: sudo ftpwho
[ Linux Command Manual](#)
YouTip