Advanced

A more expressive Bash prompt

Posted by gus3 on
I Am, Therefore I Think
Mail this story
Print this story

Bash provides some interesting built-in specifiers for the prompt strings PS1. Some of them are static, like ‘a’ for ‘alert’ (Ctrl-G, the bell, beep, or visible flash), or ‘n’ or r’ for newline or carriage return. Some specifiers are set during Bash’s startup, like ‘h’ for the hostname, or ‘u’ for the username; these don’t change during any particular shell session. Some are more dynamic,

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Community, Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

This topic does not have any threads posted yet!

You cannot post until you login.