[SOLVED] Slackware 14.2; bash prompt will not change.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We have some new work stations that we would like to install Slackware 14.2 on. We are having a time trying to change the the bash prompt from "bash-4.2#" to our log in prompt under ROOT to "root@work1:~#". The HOSTANAME we are using is "work1".
We have tried different changes to /etc/profile but logging in under ROOT
still produces "bash-4.2#. Any suggestions?
I am not following on what you are asking. Each computer will have its own Windows and Linux partitions. We are doing one at our time with
Slackware 14.2 being installed using a DVD.
Now, which Linux distribution are you actually running? There is no such thing as "Slackware 14.2", and "bash-4.2#" is not Slackware's default prompt (IIRC).
My mistake,I should of said 14.1 which I created the DVD for it in the first place. When we logged in as ROOT, the command line said "bash-4.2#". However, your reply fixed the issue logging in as the ROOT user!! Based on what you sent, I modified the code so the terminal matched the way our other terminals appear when logging in as ROOT using Slackware 12.2:
export PS1="\u@\h:~# <space>". Thanks for your help!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.