Add user to group
Append user to multiple groups without removing existing ones
usermod -aG docker,sudo alice
More linux commands
-
cat /proc/<pid>/smaps | awk '/^Size/{sum+=$2} END{print sum/1024" MB"}'Total virtual memory size of a process from smaps
-
grep -E 'HugePages|AnonHugePages|Transparent' /proc/meminfoCheck if THP / hugepages are used and configured
-
echo never > /sys/kernel/mm/transparent_hugepage/enabledDisable THP at runtime (fix for Redis, MongoDB latency spikes)
-
numactl --hardwareNUMA nodes, CPU assignment, and memory distribution
-
sysctl -w net.core.somaxconn=65535 net.ipv4.tcp_max_syn_backlog=65535Increase socket listen backlog for high-connection services