Trace which files a command opens as it starts.
IntermediateProductionRapid-Fire Commands
Answer
strace -f -e trace=openat,stat,access -o /tmp/trace.txt ./app
grep -E 'ENOENT|EACCES' /tmp/trace.txt | head
Great for "config file not found" or "permission denied" mysteries.
More on Rapid-Fire Commands
Which process is listening on port 8080?BeginnerShow the top 10 memory-consuming processes.BeginnerFind files larger than 1 GiB on the root filesystem only.BeginnerShow failed systemd units.BeginnerShow the last 10 reboots and shutdowns.BeginnerShow failed SSH login attempts by source IP.Intermediate