how to change password in ubuntu code example

Example 1: add password to user ubuntu

passwd {username}

Example 2: change password from command line in ubuntu

sudo passwd <user>

Example 3: onworks ubuntu password

onworks ubuntu-16 root password will be '123456'

Onworks.net is a free Linux emulation site, it allows you to use distros like Ubuntu for free with root access and internet connection.

But how do we use it?

Go to https://onworks.net
Find Ubuntu 19 and click 'run online'
A new tab will open, please wait until a piece of red text shows reading something like 'OS ubuntu-19.10-desktop-amd64'
Click 'start'
You repeat the steps for any distro on its site, 
FYI the root/user password is 123456 (says in banner on startup)

You can now use this to install many things, but to be honest- I would use fedora workstation