you can do echo $PATH to see your current path. For example, you have certain commands like ifconfig, who, ls, etc in certain directories like /usr/bin or /usr/sbin etc. Let's say that ifconfig is in /usr/sbin so inorder to execute the command you would have to put
However, if /usr/bin is in the path, then you could just execute ifconfig by typing ifconfig no matter what directory you are currently in. You can edit the PATH in the ~/.bashrc file.