Best Answer: Who Am I on Linux?
Contents

whoami command is used both in Unix Operating System and as well as in Windows Operating System. It is basically the concatenation of the strings “who”,”am”,”i” as whoami. It displays the username of the current user when this command is invoked.

Am I on Linux or Unix?

On Linux systems, uname will print Linux . … As Rob points out, if you’re running Mac OS X ( Darwin as indicated by uname ), then you’re running a certified version of Unix; if you’re running Linux then you’re not.

How do you find out where you are in Linux?

To determine the exact location of the current directory at a shell prompt and type the command pwd. This example shows that you are in the user sam’s directory, which is in the /home/ directory. The command pwd stands for print working directory.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest