Where is my .bashrc file in a dd image?
You can make a find command :

sudo find /Volumes/YOUR_DD_NAME/* -name ".bashrc" -print; say finish


It's working for me with my .zshrc



Note that the command take a while, say finish is just more convenient ;)