logname — stdin stdout - file -- opt --help --version
logname
The logname command prints your login name. It might seem trivial, but it’s useful in shell scripts.
$ logname smith
18.118.140.108