Linux
Users
Create new user
useradd \
--gid 0 \
--groups sudo,docker,users \
--create-home \
--shell /bin/bash \
user
Groups
Port Usage
Flags explained
| Flag | Description |
|---|---|
| -t | Show TCP sockets |
| -u | Show UDP sockets |
| -l | Show only listening sockets |
| -p | Show the process using each socket |
| -n | Show numeric addresses (no DNS) |
| -w | Show raw socket information (opt.) |