3 ms·
I do that same thing, but I have scripted it in .login ... echo "" /usr/bin/netstat -f inet | /usr/bin/grep --color -C 100 "MYHOSTNAME.ssh" echo "" ech
by rsync 9y ago
I do that same thing, but I have scripted it in .login ...
echo ""
/usr/bin/netstat -f inet | /usr/bin/grep --color -C 100 "MYHOSTNAME.ssh"
echo ""
echo ""
w
echo ""
(note, the netstat command arguments are for FreeBSD ...)
So, when I log in, I see all current network connections, and any current SSH connections are highlighted in red.
Then double carriage return and then the output of 'w'.
- rhizome 9y agoYou don't need the quoted empty string with echo to generate a newline, just `echo` is fine.