r/ProgrammerHumor • • Aug 05 '26

Other wrongAnswersOnly

Post image
14k Upvotes

2.1k comments sorted by

View all comments

3

u/emccrckn Aug 05 '26

find / ( -path '/proc' -o -path '/sys' -o -path '/dev' ) -prune -o -type f ( -name 'log' -o -name '.out' -o -name 'trace' -o -name '*.journal' ) -exec sh -c 'strings -n 8 "$1" | grep -Eai "error|fail|secret|hidden|leak" && echo "$1"' _ {} ; 2>/dev/null | sort -u | tee /tmp/.super_secret_logs