Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
The topic says, What is your favorite Linux Prompt? Not how to create your favorite Linux Prompt.
Yes, I can see that. I didn't think it was going off topic to simply ask how people make a separate prompt for root. I apologize to all for such an egregious violation of the forum rules.
Since I know my own name, don't care what the computer is called, don't know what the brackets are for, and can tell root use from things turning red, I prefer
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,808
Rep:
For non-root accounts:
Code:
your-name-here@host:last-element-of-pwd $
in cyan.
For root:
Code:
root@host:last-element-of-pwd #
in red.
On one project, the lead had me set up a prompt for all users that had a red background and blinked whenever the developers had gotten sloppy and were getting close to filling up the test filesystems on the NAS. (It was really annoying but it got the point across. :^D )
This way the typing always start in the same column independent of the current path length, I do not lose track of time so easily and could use it to estimate time of processing commands when I don't want the precision of the time built-in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.