You probably have to "escape" the ' , i.e. replace it with \' . The shell expects a closing ', which is indcated by the > at the beginning of the following lines. Escaping avoids that situation. Type something like: cd ~/.wine/dosdevices/c:/Programmi/Zuma\'s Revenge <ENTER> wine ZumaRevenge.exe &> log.txt <ENTER>