linux pptpd vpn查看当前在线用户

首页 - 技术杂谈 本文发布于2017/10/12 9:35:00

linux安装了pptpd vpn服务器,可使用last查看:

last | grep still | grep ppp

回车后可以看到:

[root@iZ62unea9cgZ ~]# last | grep still | grep ppp
mycard    ppp1         44.55.44.55      Wed Oct 11 18:13   still logged in

 查看在线用户别名
如果你觉得繁琐,你可以将它写到环境变量中.

# cat /etc/profile | grep vpn
alias ttlsavpn='last | grep still | grep ppp'

使用ttlsavpn命令

首页 | 吉凶大全 | 星座配对 | 塔罗牌

提示:本站不提供技术解答服务