SCIENTIFIC-LINUX-USERS Archives

August 2021

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"~Stack~" <[log in to unmask]>
Reply To:
~Stack~
Date:
Thu, 12 Aug 2021 18:06:33 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
On 8/12/21 5:58 PM, Ekkard Gerlach 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#
> 
> ?
> 

Try editing your ~/.bashrc

Look for a line that looks like this:

  PS1='$\u@\h:\w\$ '

Then tack on PWD like this:

  PS1='$\u@\h:\w\$PWD$ '


That should do it or at least get you close enough that a web search can 
get you the rest of the way.

Hope that helps.
~Stack~

ATOM RSS1 RSS2