Up until now I have made a point of going into a directory before a ran a program in that directory. I have been doing that because it makes it easier to understand. Really you can issue the command from anywhere and target a different location just by using the path to that location
/
home
etc
You are here
You are running your command here
$ ls -la /etc