logname command line tool and its examples

  • About logname : To print the users login name
  • It comes from “coreutils-8.4” package.
  • Configuration Files:
  • Path: /usr/bin/logname

Examples:

1. To print the users login name

$ logname 

2. To get the help for logname command

$ logname –help

3. To output version information

$ logname –version

Leave a Reply

Your email address will not be published. Required fields are marked *