Y
Y
YariKartoshe4ka2019-07-03 18:27:59
linux
YariKartoshe4ka, 2019-07-03 18:27:59

How to change the inscription in the terminal?

Can I change the inscription in the terminal: [email protected], to some other one? How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2019-07-03
@YariKartoshe4ka

Well, for example like this:

mch=`hostname -s`
PS1='\[\033[01;32m\]${mch:q}:\[\033[01;34m\][$USER]\[\033[01;36m\] \!>\[\033[00;38m\] '

hostname will be printed in green, $USER in blue, the program counter and the > symbol in cyan. Placed in .bashrc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question