0

I need to create global variable environment PS1='[\u@\h ttyid:\l \d \t \W]\$ '? I used command

$ export PS1
$ PS1='[\u@\h ttyid:\l \d \t \W]\$ '

Is that correct?

After that A conservative configuration of the PS1 environment variable is required for subsequent startup of the operating system by creating a suitable configuration file using the text editor.

  • 1
    when i customised my bash prompt i just went into the .bashrc file and commented out the default prompt and placed my own underneath you could try that – LinuxSailorTech Mar 24 '17 at 11:33
  • When you say global, do you mean for all sessions for one user, or all users? – wjandrea Apr 24 '17 at 22:27

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.