Currently my bash prompt looks like this
[user_name@server]$
when I cd into a path /dir1/dir2/dir3
cd
/dir1/dir2/dir3
it changes to
[user_name@server dir3]$
I want it to show the full path as
[user_name@server dir1/dir2/dir3]$
How can I do this ?
If you set PS1="[\u@\h: \w/]\$" in your bash setup scripts (~/.bashrc for me) then you will get (eg) [alan@alan-Z87MX-D3H: ~/]$
PS1="[\u@\h: \w/]\$"
~/.bashrc
[alan@alan-Z87MX-D3H: ~/]$
Copyright © 2021 Jogjafile Inc.
If you set
PS1="[\u@\h: \w/]\$"
in your bash setup scripts (~/.bashrc
for me) then you will get (eg)[alan@alan-Z87MX-D3H: ~/]$