Linux Terminal Command to Find User Name & Primary Group

March 25th, 2017 by thelinuxevangelist

Getting-Started with Terminal Commands on Linux

Hello Linux User! The Tip Shows You How-to Find Your’s User Name and Primary Group on Linux Terminal/Console.

The Commands are Intended for Execution on the Bash Shell but Most should Works also for the Bourne, C, TC and Korn Shells…

Linux Command to Find User Name & Primary Group - Featured

How-to Quick-Start with Command Line on Linux:

Linux Console Quick-Start
  • To Find Your’s User Name


  • To Find Your’s User Primary Group

    id -g -n $(whoami)

    And for Another User:

    id -g -n [userName]
(Visited 22 times, 1 visits today)
Share on Tumblr

Tags: , , , , , , , ,

Comments are disabled