Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Change BASH prompt

Discussion in 'General Discussion' started by DreamPhysix, Nov 11, 2011.

  1. DreamPhysix

    DreamPhysix Well-Known Member

    Sep 30, 2009
    Likes Received:
    Trophy Points:
    I'm running CentOS and cPanel (obviously) and I want to change the BASH prompt permanently for the entire server. I followed instructions for CentOS, changing /etc/bashrc's PS1 variable, and exporting PS1=, but when I log out, it gets reverted to the default. This process works fine on Debian, and the sites I read said it should work the same on CentOS. Is there something unique in cPanel that is keeping me from editing the prompt normally? I want the prompt to display the following: username@hostname:PATH$ (same as debian style). preferably where hostname is the first part of the domain name (e.g. just the server name, or i can put it in plaintext instead, whatever). Thanks!
  2. sawbuck

    sawbuck Well-Known Member

    Jan 18, 2004
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Try editing ~/.bashrc instead.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice