get the current connected user name ubuntu code example Example: get current user debian echo "$USER"