PDA

View Full Version : [ubuntu] [SOLVED] cd in th shell



gary_emms
September 12th, 2008, 04:49 PM
Hi
I know that this might seem obvious but in the shell, how do I cd to a directory when it's name has multiple words (ie 'Dark Side of The Moon')?
The command only seems to recognize the first word.

Thanks for your help

Gaz:confused:

perlluver
September 12th, 2008, 04:50 PM
Hi
I know that this might seem obvious, but how do I cd to a directory when it's name has multiple words (ie 'Dark Side of The Moon')in the shell?

The command only seems to recognize the first word.

Thanks for your help

Gaz:confused:

You can do cd /dark and press the tab key, it will fill the rest out.

sisco311
September 12th, 2008, 04:53 PM
cd Dark\ Side\ of\ The\ Moon
or

cd "Dark Side of The Moon"

gary_emms
September 12th, 2008, 04:54 PM
God, that's quick. Thanks.

If I want to write a script to to make a play list, how would I write this?
Gas

perlluver
September 12th, 2008, 05:00 PM
God, that's quick. Thanks.

If I want to write a script to to make a play list, how would I write this?
Gas

You might get more help with this in, programming, or making another thread. Posting two different questions in one thread, it may become lost, and you might never get an answer.

gary_emms
September 12th, 2008, 05:03 PM
Thanks, I think that I've got it now

Gaz

sisco311
September 12th, 2008, 05:04 PM
Cool!
If your thread is solved, please mark it solved by selecting
Mark this thread as solved from the Thread Tools.