How to print effective user id in linux

1. whoami name

whoami – print effective userid

2. whoami synopsis

whoami [OPTION]... 
3. whoami examples

whoami command just simply prints out userid of a current user:

$ whoami 

whoami command just simply prints out userid
Source taken from http://linuxconfig.org/