Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

change directory

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
gosport_gaz



Joined: Sat Apr 03, 2010 10:03 pm
Posts: 3

PostPosted: Sat Apr 03, 2010 10:11 pm    Post subject: change directory Reply with quote

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?
Question
Gaz
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7602
Location: Midlands, UK

PostPosted: Sat Apr 03, 2010 10:14 pm    Post subject: Reply with quote

IME, either:
cd the\ Smiths
or
cd "the Smiths"

will do.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
gosport_gaz



Joined: Sat Apr 03, 2010 10:03 pm
Posts: 3

PostPosted: Sat Apr 03, 2010 10:25 pm    Post subject: Reply with quote

Thanks, the first works.
Gary Laughing
Back to top
View user's profile Send private message
ajgreeny
LXF regular


Joined: Wed May 10, 2006 9:18 pm
Posts: 438
Location: Oxfordshire.

PostPosted: Sat Apr 03, 2010 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
gosport_gaz



Joined: Sat Apr 03, 2010 10:03 pm
Posts: 3

PostPosted: Sun Apr 04, 2010 8:00 am    Post subject: Reply with quote

Thanks again. Laughing
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast