Question: how to do whoami in linux?
Answer: Its primary function is to read commands that are typed into a console (i.e., an all-text display mode) or terminal window (an all-text window in a GUI) and then execute (i.e., run) them. and followed by pressing the ENTER key, whoami displays on the monitor screen the user name of the owner of the current session.