ubuntu current user code example Example 1: ubuntu know username whoami or echo $USER Example 2: get current user debian echo "$USER"