How to add existing user to an existing group www-data ? Add User to Group in Linux

#Open terminal by pressing ctrl + T. Use the following code.

sudo usermod -a -G www-data dante

# check the user called “dante” and it’s group.
id dante
groups dante