I have a question about usermod this command. I type as below:
sudo usermod -G adm -a pi
It is a normal way to append group "adm" to "pi" my raspberry. If I want to continue to append a lot of group such dialout, chrom, sudo, audio and others, how can I just type one script command only to make all groups to be? Currently, I append them each by each.
sudo user -G adm dialout chrom sudo -a pi
By the way, are there any books for dummies about this topics? I want to learn about shell-script, bash and more elaborate or essential commands about raspbian. Thanks