0

Who can explain the difference between the yangmi and liao1 to me? I mean, in the below, I use the who order to show the current user get liao1, but in the [yangmi@localhost ~]$ it is yangmi, who can explain the difference to me?

enter image description here

  • 1
    Please don't post images of text. Is it possible that yangmi might be hardcoded into the the PS1 prompt? – Fox Jun 15 '17 at 8:20
  • @Fox what do you mean? – three-blocks Jun 15 '17 at 8:27
  • The PS1 prompt ([yangmi@localhost ~] $ in your case) could have that user hardcoded. Read up about PS1 – Bruno9779 Jun 15 '17 at 8:31
  • @three-blocks The prompt is controlled by a shell variable, $PS1. Lacking context, I'd guess that this variable contains "yangmi" instead of an escape code – Fox Jun 15 '17 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.