yq05og
Last Updated: February 25, 2016
·
455
· mehikmat
587e337464192cb0425836412f98970a

Shorten the long linux terminal prompt

Only for current instance of terminal:

$ export PS1="\u@\h:\W$ "

which results to user@host:dirname$

For permanently for all terminals:

$ echo export PS1="\u@\h:\W$ " >> .bashrc && bash
Say Thanks
Respond
Filed Under