How can I run commands inside of directories?

How can I cd into a directory and then execute commands from there? Because when I cd into a directory and then use dir, it shows the root directory instead of the directory I went into.