4 Ways to Identify Who is Logged-In on Your Linux System
w
w -h
w -u
w -s
who
who | cut -d' ' -f1 | sort | uniq
users
whoami
id -un
who am i
who mom likes
last jason
https://www.thegeekstuff.com/2009/03/4-ways-to-identify-who-is-logged-i…
w
w -h
w -u
w -s
who
who | cut -d' ' -f1 | sort | uniq
users
whoami
id -un
who am i
who mom likes
last jason
https://www.thegeekstuff.com/2009/03/4-ways-to-identify-who-is-logged-i…
whois 192.0.2.2
Addresses starting with "192.0.2.", "198.51.100.", or "203.0.113." are reserved for use in documentation and sample configurations. They should never be used in a live network configuration. No one has permission to use these addresses on the Internet.
executar um comando num contentor:
docker exec -it xana_nginx cat /etc/sysctl.d/00-alpine.conf
determinar o ip de todos os contentores:
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }} {{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' | sed 's#^/##';
https://gist.github.com/ipedrazas/2c93f6e74737d1f8a791