Moid if u do last -100 |sort -k 5 vs last -100 |grep -v oracle |grep -v reboot |sort -k 5. I don't see any difference.
This is how my alias called llfo is set on 223 server.alias llfo='last -adi -1000 |grep -v root | grep -v reboot |grep -v 192.168.0 | sort -gk 5n,5 -k 6'For verification purpose, type, "alias llfo" on 223 server and you will see the complete command.
Moid if u do last -100 |sort -k 5 vs last -100 |grep -v oracle |grep -v reboot |sort -k 5. I don't see any difference.
ReplyDeleteThis is how my alias called llfo is set on 223 server.
ReplyDeletealias llfo='last -adi -1000 |grep -v root | grep -v reboot |grep -v 192.168.0 | sort -gk 5n,5 -k 6'
For verification purpose, type, "alias llfo" on 223 server and you will see the complete command.