Dir is the starting directory of the shell opened in the terminal. If it is not specified, the home directory should be used.
The terminal program follows the current desktop: Konsole for KDE, gnome-terminal for Gnome, and so on.