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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -