Spotlight | Reviews | Current Issue | Newsletter | Subscribe | Contact |
Departments

user friendly

  linux-magazine.com » Issues » 2007 » 84 » PRIMPED PROMPT  

Print this page. Recommend
Slashdot it! Delicious Digg

Configuring the Bash prompt

PRIMPED PROMPT

Author(s): HEIKE JURZIK

Color-coding your prompt may help avoid configuration errors and data loss. We’ll show you how to design your own custom shell prompt with color and control sequences.

ANSI control sequences for color and cursor positioning give users the ability to design a customized and functional Bash prompt to suit their own needs. Command-line fans often find it hard to see the prompt for Xterms. If the prompt on a remote machine looks different from your home prompt, it might save you from inadvertent shutdown commands, and if unprivileged users see a green prompt and root sees a red one, you might be able to avoid configuration errors or even data loss. A shell prompt tailored to match your needs can help prevent confusion.


Read full article as PDF »


Comments


Print this page. Recommend
Slashdot it! Delicious Digg
Related Articles
SCRIPT WORKOUT Script tuning in Bash
SCRIPTING SECRETS New tools and techniques for scripting in Linux
PAINT YOUR BASH ANSI escape sequences
EASY SETUP Make your self at home
SHELL GAMES Comparing Bash with the Windows Vista shell
Live Streaming of LISA '08

22nd Large Installation System Administration Conference

If you follow the fortunes of large installation IT, tune in on November 12-14 for a front row ticket to the Invited Talks series of the USENIX LISA conference.

Find out more

 

In the US and Canada, Linux Magazine is known as Linux Pro Magazine.
Entire contents © 2008 [Linux New Media USA, LLC]
Linux New Media web sites:
North America: [Linux Pro Magazine]
UK/Worldwide: [Linux Magazine]
Germany: [Linux-Magazin] [LinuxUser] [EasyLinux] [Linux-Community] [Linux-Nachrichten] [Linux Events]
Eastern Europe: [Linux Magazine Poland] [Linux Community Poland] [Darmowe Programy Poland] [Open Source DVD Poland] [Linux Magazin Romania]
International: [Linux Magazine Brazil] [Linux Magazine Spanish]
Corporate: [Linux New Media AG]