In this post, we take a look at how the traceroute command works. traceroute is a utility command that prints the route (or hops) that a packet takes to reach another host. We start with an example of traceroute. Then we go through what happened behind the scenes. Finally, we run the traceroute command one more time while sniffing the traffic with tcpdump.
Traceroute example Let’s look at an example:
Read more →
This is going to be a short post showing how to run an HTTP server to serve your current working directory.
TLDR For Python 3 run:
python3 -m http.server For Python 2 run:
python -m SimpleHTTPServer .bashrc alias:
alias serve="python3 -m http.server" Explanation Sometimes at work, I’ve had the need to spin up a quick HTTP server to serve my current working directory. I usually need this for two use cases:
Read more →
A few weeks ago, I saw a great video explaining how Docker works under the hood (see video below). The video ends with a demo where Jérôme Petazzoni creates a container using nothing but bash. I found many of the commands that he used pretty cryptic, so I decided to explain what he did and the purpose of each command.
Video (The demo starts around minute 41)
Read more →