How To Change Shell Prompt In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal.
2. Edit the shell configuration file. This file is usually located in the home directory and is named “.bashrc”.
3. Change the value of the “PS1” variable to the desired prompt.
4. Save the file and exit.
5. Type the command “source .bashrc” to apply the changes.
6. The new prompt should now be visible.