The prompt string

The prompt string is the string that marks or delimits your bash command line. The default prompt string for Kali Linux is root@kali:#. This string is not a static value and can be changed to whatever you'd like it to be. This section will cover some very useful modifications you can make to your prompt string. We're going to make it display some helpful information about your Linux System.

To control the value displayed as your prompt string, you need to modify the value of the PS1 variable, as seen in the following screenshot:

The prompt string

So you might be wondering when and how this value is set for your bash terminal. Well, as it turns out, ...

Get Penetration Testing with the Bash shell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.