how to acces to shell? and write commands?
The information in this DreamHost Wiki article should help!
Make sure you follow the link in that article to “Enabling Shell Access” also!
Once connected, you will be able to use *nix commands from the command line in the shell: