≡ Menu

id command

Ubuntu Linux: Add a User To Group

How do I add a user to group under Ubuntu Linux operating system using command line options?
[click to continue…]

Linux: Show The Groups a User Is In

How do I find out what groups I belong to under Linux operating systems?
[click to continue…]

Linux / Unix Shell Script: Get Current User Name

I am working on a shell script. I need to find out the current user name. How do I find out the current user name under Bash or Ksh shell running on Linux or Unix like operating systems?
[click to continue…]

Linux / Unix: id Command Examples

id command

I am a new Linux and Unix system user. How do I find out the user and groups names and numeric IDs of the current user or any users on my server? How can I display and effective IDs on the system using command line options? In Linux, how do I find a user’s UID or GID?
[click to continue…]

Linux: Find Out My Group Name [ Group Memberships ]

How do I find out the group name under Linux operating systems using bash shell prompt? How do I display group information for the specified USERNAME under Linux?
[click to continue…]

CentOS / Red Hat: Sudo Allows People In Group Admin To Run All Commands

I like the way Ubuntu Linux works – all people in admin groups should able to run all commands after running it via sudo “command-name”. How do I setup sudo under CentOS or Red Hat Enterprise Linux to allow all members of the ‘admin’ group to run all commands?
[click to continue…]

UNIX / Linux Command To Check Existing Groups and Users

How do I check the existing Linux / UNIX users and groups under Linux operating system?
[click to continue…]

Remove Linux User From a Secondary Group ( Supplementary Groups )

Q. User tom is a member of a group called sales and printer. I’d like to remove tom from a group called printer without editing any user configuration text files stored at /etc/ directory?
[click to continue…]

Linux Change or Rename User Name and UID (user-id)

How do I change user name (rename user name) or UID under a Linux operating system using command line tools?
[click to continue…]