`
疯瞳-北京
  • 浏览: 6514 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

centos下用户信息查询finger

阅读更多
简介
finger命令用于查找并显示用户信息。包括本地与远端主机的用户皆可,帐号名称没有大小写的差别。单独执行finger指令,它会显示本地主机现在所有的用户的登陆信息,包括帐号名称,真实姓名,登入终端机,闲置时间,登入时间以及地址。
A、install software
[root@localhost ~]# yum info finger
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* webtatic: us-east.repo.webtatic.com
Available Packages
Name        : finger
Arch        : x86_64
Version     : 0.17
Release     : 40.el6
Size        : 22 k
Repo        : base
Summary     : The finger client
License     : BSD
Description : Finger is a utility which allows users to see information about system
            : users (login name, home directory, name, how long they've been logged
            : in to the system, etc.).  The finger package includes a standard
            : finger client.
            :
            : You should install finger if you'd like to retrieve finger information
            : from other systems

[root@localhost ~]# yum -y install finger
B、finger使用方法
[root@localhost ~]# finger --help
finger: invalid option -- '-'
usage: finger [-lmps] [login ...]
-l:列出该用户的帐号名称,真实姓名,用户专属目录,登入所用的Shell,登入时间,转信地址,电子邮件状态,还有计划文件和方案文件内容;
-m:排除查找用户的真实姓名;
-s:列出该用户的帐号名称,真实姓名,登入终端机,闲置时间,登入时间以及地址和电话; -p:列出该用户的帐号名称,真实姓名,用户专属目录,登入所用的Shell,登入时间,转信地址,电子邮件状态,但不显示该用户的计划文件和方案文件内容。

C、test
[root@localhost ~]# finger root
Login: root                             Name: root
Directory: /root                        Shell: /bin/bash
Last login 三 11月  1 09:45 (CST) on tty1
New mail received 四 11月 30 10:59 2017 (CST)
     Unread since 四 12月 17 20:59 2015 (CST)
No Plan.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics