The thing you want to edit is called the PS1 variable.

You can read about customizing the prompt on the Arch Wiki: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.archlinux.org_title_Bash_Prompt-5Fcustomization&d=DwIFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=u4gDhUnYNNGqL2Vun-01ND7r4KvFFHj0DUcYR_zvPyI&s=qGutwP7HutDUbdMrckcB53m5GypOCROR4NblgnCT_dM&e=
 

There is also a nifty configuration that will spit out what you want here: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__bashrcgenerator.com_&d=DwIFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=u4gDhUnYNNGqL2Vun-01ND7r4KvFFHj0DUcYR_zvPyI&s=SXyvPfgBAKXMN4cY3c8dSO01MrH077o56q7R_dro79s&e=
 

—Jack

> On Aug 12, 2021, at 18:58, Ekkard Gerlach <e...@liburg.de> wrote:
> 
> Hello,
> 
> how can I customize the bash/ terminal promt  always
> 
> [root@arthur Desktop]#
> 
> to
> 
> [root@arthur /home/user41/Desktop]#
> 
> or root@arthur:/home/user41/Desktop#
> 
> ?
> 
> I waste tons of concentration or time to type dozends times "pwd" only to 
> detect that I am in the right user directory.
> 
> I know that its set in /etc/bashrc, but I don't understand how to change.
> 
> Who knows it?
> 
> tia Ekkard

Reply via email to