Useful Commands
Find User Account Info
12 Ways to Find User Account Info and Login Details in Linux
caution
Replace pariskwsto
with your username
Lists all groups to which a user belongs
This command displays both the primary and supplementary groups associated with a specific user.
groups pariskwsto
Currently Logged-in Users
The users command provides a list of users currently logged into the Linux system.
users
Lists user accounts
Lists user accounts and contains various pieces of information about that account
less /etc/passwd
Password Management
How do I change a user password in Ubuntu Linux?
Changing Passwords on Ubuntu Systems
To modify a user's password (e.g., pariskwsto
), use:
sudo passwd pariskwsto
To change the password for the root
user, execute:
sudo passwd root
For changing your own password, simply enter:
passwd