0
The whoami command.
With the whoami command.
The "whoami" command should show you what account you are currently using.
You don't need a shell script for that; use either 'whoami' or 'id'
There are many ways to do this:
whoami
id
echo $USER
echo $LOGNAME