A more expressive Bash prompt

Posted by gus3 on Jan 21, 2020 5:20 PM EDT
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

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.