V
V
Vladislav2014-09-10 17:01:24
macOS
Vladislav, 2014-09-10 17:01:24

What's the name of the next word in the terminal?

A bit of a stupid question that I can't google. I don’t understand, like I changed both HostName and ComputerName, but everything is not right. What is the ima name in the following screenshot and how can I change it?
5127e537d9694c69b6c29503b3417d46.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-09-10
@begemot_sun

apparently the name of the computer.
for me it looks like this:
[email protected]:~$
in general, the string format can be configured independently.

P
plasticmirror, 2014-09-10
@plasticmirror

username
ls -1 /Users/
to confirm

S
Sergey Petrikov, 2014-09-10
@RicoX

Who knows what is written in your PS, enter for example:
PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;30m\]\w \[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;32m\]'
or any of your format, will display what you need to you. If you really want to know what is there - see the config of your command interpreter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question