How to change admin password in RouterOS using terminal

Use the following command to change the admin password on a MikroTik RouterOS device:

/user set admin password="newpassword"

Replace newpassword with the new password you want to set.