By Keith Mitnick on Friday, 01 July 2016
Category: General

How to get current logged in user from the Command Line.

#Get current logged in user


userName=`ls -l /dev/console | awk '{ print $3 }'`

Leave Comments