how to know which login file is being accessed

when unix is logged in it access some login file depending on the shell
like .cshrc , .login , .vimrc , .bashrc
how can we know which is being access in a perticular unix flavor.

depends on the shell configured in /etc/passwd

Based on the shell corresponding resource file would be sourced