| View previous topic :: View next topic |
| Author |
Message |
gosport_gaz
Joined: Sat Apr 03, 2010 10:03 pm Posts: 3
|
Posted: Sat Apr 03, 2010 10:11 pm Post subject: change directory |
|
|
Hi
Please bare with me if this is simple but I'm scratching my head.
I want to change into a directory using a shell. I type - cd the Smiths and get told that there is not a directory called 'the'. How can I change my command to make it see the full name?
Gaz |
|
| Back to top |
|
 |
Rhakios Moderator

Joined: Thu Apr 07, 2005 12:18 am Posts: 7484 Location: Midlands, UK
|
Posted: Sat Apr 03, 2010 10:14 pm Post subject: |
|
|
IME, either:
cd the\ Smiths
or
cd "the Smiths"
will do. _________________ Bye, Rhakios |
|
| Back to top |
|
 |
gosport_gaz
Joined: Sat Apr 03, 2010 10:03 pm Posts: 3
|
Posted: Sat Apr 03, 2010 10:25 pm Post subject: |
|
|
Thanks, the first works.
Gary  |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 413 Location: Oxfordshire.
|
Posted: Sat Apr 03, 2010 11:00 pm Post subject: |
|
|
It is always worth using a dash - or underscore _ in folder or file names in all linux distros, otherwise you have to use a \ to allow the space to be recognised, or the quotation marks.
However, the easiest way to get past that in terminal can often be to use tab to autocomplete after typing the first few letters of the pathway, but it may not always work, particularly if there are a lot of folders beginning with "The". In general, however, tab is your great friend in terminal. _________________ Xubuntu 12.04 user, and loving it! |
|
| Back to top |
|
 |
gosport_gaz
Joined: Sat Apr 03, 2010 10:03 pm Posts: 3
|
Posted: Sun Apr 04, 2010 8:00 am Post subject: |
|
|
Thanks again.  |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|