Results 1 to 4 of 4
Is it possible to customize the prompt in Linux with custom text?
We install software on customers servers, I'd like to have what version of software they are using at ...
- 07-29-2011 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 15
How to customize prompt WITH custom text
Is it possible to customize the prompt in Linux with custom text?
We install software on customers servers, I'd like to have what version of software they are using at my display prompt.
How?
- 07-29-2011 #2
Yes, it is possible:
Bash Prompt HOWTO: Bash and Bash Prompts
Also, there is the /etc/motd file.
That said, are you sure this is a good idea?
Essentially this is advertisement and adds nothing to the useability.
In contrast, it takes away space and possibly even the preferred custom config of your customers.
I would not be pleased and you would surely get "feedback".
Versioninformation should be where it is expected.
In the deb/rpm package.
So that it can be queried with standard toolsYou must always face the curtain with a bow.
- 07-29-2011 #3Just Joined!
- Join Date
- Jul 2010
- Posts
- 15
Customers never login to their servers, they only use web interface. It is strictly developers logging in and making changes. It would be handy to know what version of our software is running within the command prompt.
Read the bash and bash prompts but I don't see anything on customizing your own text. I'd like a prompt like: [root@ofca3 -VERSION4.2.1 ~]#
I've looked for a few hours and don't yet see a way to use your own custom
- 07-29-2011 #4
Like this?
It is your choice of course, but the fact that only developers login actually strengthens my point.Code:PS1="[\u@\h-VERSION4.2.1 ]\w\$"
Because this is a group of people, that is capable of and prone to change settings.
Likewise, they would know how to rpm -qi <YOUR_APP> or dpkg -s <YOUR_APP>You must always face the curtain with a bow.


Reply With Quote