bash tips
- no title specified
Little-known bash commands for the SysAdmin Toolbox
finger This is a user-information lookup program, which display information on system users. If it's executed without an argument it will display a list of currently-logged in users:
Login Name Tty Idle Login Time Office Office Phone Host
user1 user1 tty1 1:40 Jan 7 15:57 (:0)
user1 user1 pts/0 Jan 7 15:58 (192.168.9.1)
Given a username as an argument it will display extended information on that user:
# finger user1
Login: user1 Name: user1
Directory: /home/user1 Shell: /bin/bash
On since Thu Jan 7 15:57 (CST) on tty1 from :0
1 hour 40 minutes idle
On since Thu Jan 7 15:58 (CST) on pts/0 from 192.168.9.1
4 seconds idle
No mail.
No Plan. chfn Similarly, use the chfn command to change the information that the finger command displays. SYNOPSIS
chfn [-f fu…