logname
file managementLinux/Unix
The logname command is one of the most frequently used commands in Linux/Unix-like operating systems. logname Print the name of the current user
Quick Reference
Command Name:
logname
Category:
file management
Platform:
Linux/Unix
Basic Usage:
logname [options] [arguments]
Common Use Cases
Syntax
logname [options]
Options
Option | Description |
---|---|
--help |
Display help information and exit |
--version |
Display version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the logname
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
logname