Dos Command for Current logged in username
Get the CLI (command line interface) function for finding current logged in username in different operating systems in here.
To our surprise, it is the same command in all these OS – Windows DOS, Linux & Mac OS.
This command displays the current username.
It would be facinating, if all the different OS developers/founders have designed common functionalities with same name across all platforms.
How easy it would be for the programmers.
MacOS recently changed the functionality to ‘id – un’.
In DOS, you can also use to retreive it from environment variable like ‘echo %username%’