ftpwho命令用于显示当前正在连接到FTP服务器的用户信息。它可以显示用户的用户名、IP地址、登录时间、进程ID以及当前工作目录等信息。

语法:

ftpwho [选项]

选项:

  • -a:显示所有连接的用户信息。
  • -u user:显示指定用户的连接信息。
  • -h:显示帮助信息。

示例:

  1. 显示所有连接的用户信息:

ftpwho -a

输出:

1 user(s) connected User IP When Process ID Data Directory

 user1      192.168.1.1   2021-01-01 12:00:00      1234        /home/user1
 user2      192.168.1.2   2021-01-01 12:30:00      5678        /home/user2
  1. 显示指定用户的连接信息:

ftpwho -u user1

输出:

1 user(s) connected User IP When Process ID Data Directory

 user1      192.168.1.1   2021-01-01 12:00:00      1234        /home/user1
  1. 显示帮助信息:

ftpwho -h

输出:

Usage: ftpwho [-a] [-u username] [-h] -a show all connections -u username show only connections for a specific user -h show this help messag

linux系统ftpwho命令用法

原文地址: https://www.cveoy.top/t/topic/hljO 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录