Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I'm working with a sed editor and I realize that the command prompt is:

[darkchild@localhost ~]$

How can I change the above command so that it ends in 

For example:

[darkchild@localhost ~]#

My friend suggested me to write this command

#!/bin/bash

But it does not change the prompt too.

1 Answer

0 votes
by (36.8k points)

Canonically # means root shell. As per my knowledge, you probably need not to this because it would confuse other users of your system. If you don't want to do this, you can edit the PROMPT variable.

Come and join Linux training to gain great knowledge. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...