Linux错误:bash:finger 未找到命令...

Linux错误:bash: finger: 未找到命令…

#意外用了一下finger命令,结果显示未找到命令
[root@localhost ~]# finger -l root   
bash: finger: 未找到命令...

#挂载一下光驱,排除连不上光驱的可能,用grep命令过滤一下,结果啥也没有显示
[root@localhost ~]# mount /dev/sr0 /mnt
mount: /dev/sr0 写保护,将以只读方式挂载
[root@localhost ~]# ls | grep finger

#说明没安装finger包,Linux是默认未安装finger,下面安装一下finger
[root@localhost ~]# yum install finger
已加载插件:fastestmirror, langpacks
base                                                        | 3.6 kB  00:00:00     
extras                                                      | 2.9 
安装  1 软件包
......
总下载量:25 k
安装大小:32 k
Is this ok [y/d/N]: y
......
已安装:
  finger.x86_64 0:0.17-52.el7                                                      
完毕!
#用finger查看一下当前用的相关信息
[root@localhost ~]# finger
Login     Name       Tty      Idle  Login Time   Office     Office Phone   Host
root      root       pts/0      12  Oct  6 17:13                           (192.168.59.1)
root      root       pts/1          Oct  6 17:23                           (192.168.59.1)

[root@localhost ~]# finger -l
Login: root           			Name: root
Directory: /root                    	Shell: /bin/bash
On since 三 106 17:13 (CST) on pts/0 from 192.168.59.1
   12 minutes 39 seconds idle
On since 三 106 17:23 (CST) on pts/1 from 192.168.59.1
   7 seconds idle
No mail.
No Plan.

[root@localhost ~]# finger tp
Login: tp             			Name: tp
Directory: /home/tp                 	Shell: /bin/bash
Last login 三 106 17:24 (CST) on pts/1
No mail.
No Plan.
[root@localhost ~]# finger root
Login: root           			Name: root
Directory: /root                    	Shell: /bin/bash
On since 三 106 17:13 (CST) on pts/0 from 192.168.59.1
   39 minutes 42 seconds idle
On since 三 106 17:23 (CST) on pts/1 from 192.168.59.1
   6 seconds idle
No mail.
No Plan.

你可能感兴趣的:(Linux,linux,bash)