O'Reilly logo

Penetration Testing with the Bash shell by Keith Makan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required