Confirming Your Current User Account

When working on Linux, you might not always be able to see which user you are logged in as by default, or perhaps you want confirmation before making a change.

Thankfully, find out is very simple and is done using a one word command which will instantly output the username as a result.

LINUX-HOST# whoami

Thankfully, this also works in Windows too, so its helpful to know regardless of which OS you are working on.

A short post, but it helps me remember and hopefully it can benefit someone – I hope its helpful!



Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.

Subscribe to Blog

Enter your email below to subscribe to this blog.