Ubuntu – Using the Terminal in Ubuntu to change directory

bashcommand line

I have a question about using the terminal in ubuntu 11.04.I have installed wine and steam and civ III thru steam.According to instructions on wine forum in order to play civ some font files need to be moved within the wine folder which i have done but it also informs to do the following:

then open a console and browse to:
.wine/dosdevices/c:/Program Files/Steam/steamapps/common/sid meier's civilization iii complete/Conquests/

and type the following command:
sudo chown root LSANS.*

when I open the terminal I am able to change directory to .wine/dosdevices/c but when I try to change to the next "program files" I get message in terminal not found. I type in ls command and does list "program files" why am I NOT able to change to directory "program files"

below is actual steps in terminal i have done

mike@ubuntu:~$ cd .wine
mike@ubuntu:~/.wine$ cd dosdevices
mike@ubuntu:~/.wine/dosdevices$ cd c:
mike@ubuntu:~/.wine/dosdevices/c:$ ls
Program Files  users  windows
mike@ubuntu:~/.wine/dosdevices/c:$ cd program files
bash: cd: program: No such file or directory
mike@ubuntu:~/.wine/dosdevices/c:$

I also tried capitalize

Best Answer

Arguments in the shell are are separated using spaces. This means that whenever you run a command and try to pass a file or a directory as an argument that contains a space in it, bash assumes it is two separate arguments. There are many ways to specify this. You can use what is called an escape character to signal that the space is part of the argument. To do this, just insert a \ before the space in the file name

cd Program\ Files

or you can use quotes to signal that it is a single parameter

cd "Program Files"

However, often you will not need to type the whole thing if you use the Tab Completion feature

cd P<TAB>

If there are multiple files starting with P, add another alphabet and press tab again to complete.