The /etc/bashrc file is a shell script (think Windows batch file) that gets run every time any user logs in, so if you edit that file and add a cd /some/dir to its end, this command would get executed anytime someone logged in.