unidentified characters in terminal window (myname@boss-пк)

Hi everyone,


While using a terminal today I noticed strange characters after my computer name on the terminal. What does it mean? How can I get rid of it?

  • it is a default window of the terminal.

MacBook Pro 13″, macOS 11.6

Posted on Jun 10, 2022 1:28 AM

Reply
2 replies

Jun 12, 2022 12:12 PM in response to imfaza

imfaza wrote:

• Hi everyone,

While using a terminal today I noticed strange characters after my computer name on the terminal. What does it mean? How can I get rid of it?
it is a default window of the terminal.


Doesn't mean much...just depends on what you want to see.



Return the default prompt (note the trailing empty space) copy & paste:

export PS1="%n@%m %1~ %# " 


ex. username@MacBook-Pro ~ %



You can customize the prompt...

changed this with:

export PS1="%m %1~ %# " 


ex. MacBook-Pro ~ %





Change General preferences in Terminal on Mac - Apple Support


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

unidentified characters in terminal window (myname@boss-пк)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.