Useful Commands
Find User Account Info
12 Ways to Find User Account Info and Login Details in Linux
caution
Replace parisikosto with your own username.
List all groups a user belongs to
This command displays both the primary and supplementary groups for a specific user:
groups parisikosto
Currently Logged-in Users
The users command lists users currently logged into the system:
users
List user accounts
Shows user accounts and related account details:
less /etc/passwd
Password Management
How do I change a user password in Ubuntu Linux?
Change a user's password on Ubuntu
To change a user's password (e.g., parisikosto), run:
sudo passwd parisikosto
To change the root user password, run:
sudo passwd root
To change your own password, run:
passwd