I had a use case in which I needed to obtain a unique identifier of a container from within the container. The problem is that container is started with docker-compose using scale option so that a number of indentical containers are started. Googling around gave me some options like examining /proc/self/cgroups, but in my case, this file didn't contain anything useful. Another solution was to| Everything about nothing
So, for whatever reason, while running ls command, I wanted my directory to be sorted by the length of the names in it, not by some other sorting method ls uses. After a bit of trial and error experimenting, I ended up with the following pipeline to do that: for i in *; do echo `echo "$i" | wc -c` "$i"; done | sort -n | cut -f2- -d" " | xargs -d \\n ls -Uld Let's break this command into peaces| Everything about nothing
I just spent at least 15 minutes trying to figure out why every single post on the Internet tells me to place MD5 hash in a file and call John like this john --format=raw-md5 --wordlist=/usr/share/dict/words md5.txt and yet, it constantly gives me an error message: No password hashes loaded (see FAQ) The content of md5.txt was: 20E11C279CE49BCC51EDC8041B8FAAAA I even tried prepending dummy| Everything about nothing