Pages

Sunday, January 10, 2016

Shell Prompt with Username and Hostname

export PS1="[${LOGNAME}@$(hostname)]$ "

In .profile >>

PS1="[${LOGNAME}@$(hostname)]$ ";       export PS1

No comments:

Post a Comment