How do I print a username in Linux?
Print User Names of Currently Logged in Users Linux
- Method # 2: Using the “whoami” Command:
- Method # 3: Using the “w” command:
- Method # 4: Using the “last” Command:
- Method # 5: Using the “users” Command:
How do I print a username in Linux?