hide user name cmd mac code example Example 1: mac terminal hide username export PS1="\W \$" Example 2: how to hide hostname mac terminal export PS1="\u$ "