Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

Commands below will help you deal with the current users in the system.


List


cut -d: -f1 /etc/passwd

Add


sudo adduser new_username

Delete


sudo userdel username
sudo rm -rf /home/username

Change username


usermod -l new_username old_username

Change password


sudo passwd username

Change details


sudo chfn username