Skip to content
Primary Menu
  • Officetricks.Com
  • Blog
  • App Store
    • International Users
    • Indian Users
  • Subscribe
  • About Us
  • Excel
  • Social Media

Find Current Username in DOS, Linux & Mac OS

March 14, 2023
Kumarapush

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.

  • whoami

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.

Note:
MacOS recently changed the functionality to ‘id – un’.
In DOS, you can also use to retreive it from environment variable like ‘echo %username%’

Tagged in : dos linux login macos username whoami

Related Articles

How to Lock a Folder In Windows – Easy Excel VBA Code

Removing Empty Folder is Now Easy – Get Folder List with Size

Print Screen Automation – Take Screenshot, Save to File and Attach in Excel

Post navigation

Previous Previous post: How to open VBA in Excel – Macro code editor?
Next Next post: Turn on Windows 10 Taskbar Search Box – Quick Shortcut
Cmd Prompt System Control
Cmd Prompt Tricks
  • Shell Script
  • List available Wifi Networks & change Connection
System Control Tricks
  • Windows 10 Free Upgrade from Windows 7,8
  • Lock System at Scheduled Time with Excel
  • Enable Dark Mode in Windows 10
  • How to hide icons in desktop in Windows 10?
  • Booting process of the Linux operating system
  • Sort Listview Column on Click – VBA/VB6 Userform
  • Bulk Excel VBA Send Email with Attachments – 2 Multiple recipients
  • GB Whatsapp Features – Easy Download Steps
  • Excel VBA For each cell in Range – Direct method
  • Excel VBA Send Email at Specific Time – Outlook Delayed Delivery
  • Sort Listview Column on Click – VBA/VB6 Userform
    Get VBA code to sort a listview column header on click. Not only default column, any column in listview can be sorted, with a click on column header.
  • Excel vba send email with attachments using Outlook App Mass Bulk email
    Bulk Excel VBA Send Email with Attachments – 2 Multiple recipients
    Get Excel vba send email with attachment code that uses Outlook app already installed. Send bulk emails to multiple recipients with different email.
  • GB Whatsapp Features Smartphone Messaging App Download page
    GB Whatsapp Features – Easy Download Steps
    Learn GB WhatsApp features compared to the original WhatsApp app. It offers enhanced security, privacy settings, customizations & more
  • Officetricks.Com
  • Blog
  • App Store
    • International Users
    • Indian Users
  • Subscribe
  • About Us
  • Excel
  • Social Media
Copyright All rights reserved