centos - Linux,How to show absolute path in shell promt? -


now shell shows short path this

enter image description here

i want show full absolute path in front.like

enter image description here

how change it?

append ps1 variable \w , store in e.g .bash_profile

an example

export ps1="\u@\h \w> "

where

\u – username

\h – hostname

\w – current working directory, full path (ie: /data/temp)

check out following tutorial more options.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -