/cheatsheet

Apache License 2.0Apache-2.0

cheat sheet

License

Categories

Docker

Build docker image

docker build -t imagename:tag .

Spin up a container. Map host port 8080 to port 80 in the container

docker run -p 8080:80 --name containername imagename:tag

Netcat

Listen on port 8080 (verbose)

nc -lv 8080

Connect to port 8080 on localhost

nc localhost 8080

Wordcount

Count number of lines

wc -l filename.txt

Count number of words

wc -w filename.txt

Count number of characters

wc -c filename.txt

License

Apache 2.0 License