Introduction
This article provides the steps to customize the BASH prompt for a user.
Procedure
- Access the server's command line via SSH or "Terminal" in WHM.
- Backup the
.bashrc
file.cp -a .bashrc{,.$(date +%s)}
- Open the user's
.bashrc
file in your preferred text editor. - If the
PS1
line doesn't exist, add it. - Set the
PS1
to the desired value.PS1='$text >'
Please note that "$text >" must be replaced with the desired text for the prompt.
Comments
0 comments
Article is closed for comments.