centos - Linux,How to show absolute path in shell promt? -
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
Post a Comment