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!


Starting a new topic:

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Subject:

Your message:

|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post