Back

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

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

[[email protected] ~]$

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

For example:

[[email protected] ~]#

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
asked Nov 30, 2020 in Linux by dev_sk2311 (43.2k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.6k users

Browse Categories

...