How to get current logged in user from the Command Line.
Jul 02
Posted by
Keith Mitnick
in
General
#Get current logged in user
userName=`ls -l /dev/console | awk '{ print $3 }'`
PRINT