Terminal on Mac OS

Until recently, my username on the terminal was "tototanaka@Totos Air" but it has been changed to "tototanaka@UNKNOWN" and it seems I need to use sudo each time when I install something using terminal.
Please let me know how to change this setting back to "tototanaka@Totos Air".

Thank you very much.

enter image description here

enter image description here