Skip to content

Get current user in Shell

Using a built-in variable:

$ echo $USER

Using a command:

$ whoami
See also  How to install and init Google Cloud SDK in Linux (Debian / Ubuntu)?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.