export PS1="\u@\h:[\w] $ "
The it comes out prompt as following:
u$h:[w] $
it seems system can't identify \u and \h.
Thanks for any instructions.
N****w 发帖数: 21578
2
are you using bash? or sh?
run bash and try it.
【在 J*****n 的大作中提到】 : export PS1="\u@\h:[\w] $ " : The it comes out prompt as following: : u$h:[w] $ : it seems system can't identify \u and \h. : Thanks for any instructions.