In Ubuntu, open the app grid from the dock, type Terminal into search, and select the Terminal icon. The keyboard shortcut Ctrl + Alt + T also opens it.
Click inside the terminal, type this command, and press Enter:
Command
whoamiPiece-by-piece explanation
whoamiis the complete command name. Read it as “who am I?”- It needs no options or extra information.
- Press Enter to ask Linux to run it.
Expected output
mayaYour output will be the username you created during Ubuntu installation, not necessarily maya.
After the result, the prompt appears again. That means the command finished and the terminal is ready.