How to extract the username from ‘who am i’ comamnd?

who am i | cut -f1 -d’ ‘

Category: UNIX Interview Questions.