How to Add a User to a Group in Linux

Today I had to add an existing user to an existing group in Linux. It’s been so long since the last time I did it that I had actually forgotten how to do it. Well, good ol’ man pages to the rescue. Here’s how to do it:

adduser user group

If you want to verify that it worked, use grep:

grep group /etc/group

In grep’s output, you should see the user’s name. For example:

group:!:50:tom,dick,harry,user

Enjoy!

Network Statistics in Linux

  • To display statistics for each networking protocol, on systems using a full shell: netstat -s
  • To display statistics for each networking protocol, on systems using the stripped down “Busybox” shell (e.g. OpenWrt): more /proc/net/snmp
Page 6 of 6« First...«23456