elementary command question
Occasionally, I find I have two-word directories, that is, directories with two-word names, where there is a space between the words. I have tried every combination possible (I think) using "cd", and can't get into the directory from the command line. How do I get into such a directory? thanks dj tuchler
Tab completion doesn't get you anywhere? Try typing cd ./ and then the first few letters of the file name and hit tab. It should give you the full folder, probably with an escape character (slash or backslash) before the space. cd ./thr[tab] cd ./three\ word \filename cd 'three word filename' all work for me. Hope that helps. On Feb 8, 2005, at 5:33 PM, Dennis J. Tuchler wrote:
Occasionally, I find I have two-word directories, that is, directories with two-word names, where there is a space between the words. I have tried every combination possible (I think) using "cd", and can't get into the directory from the command line. How do I get into such a directory?
thanks
dj tuchler
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Tuesday 08 Feb 2005 22:33 pm, Dennis J. Tuchler wrote:
Occasionally, I find I have two-word directories, that is, directories with two-word names, where there is a space between the words. I have tried every combination possible (I think) using "cd", and can't get into the directory from the command line. How do I get into such a directory?
cd "multi word directory"
thanks
dj tuchler
-- "I see your Schwartz is as big as mine" -Dark Helmet
enclose the dir name with single quotes, e.g cd '1 2' Found that info here: http://www.oreilly.com/catalog/debian/chapter/book/ch04_03.html -- devosc
DJ, On Tuesday 08 February 2005 14:33, Dennis J. Tuchler wrote:
Occasionally, I find I have two-word directories, that is, directories with two-word names, where there is a space between the words. I have tried every combination possible (I think) using "cd", and can't get into the directory from the command line. How do I get into such a directory?
% cd "two-word name" or % cd two-word\ name
thanks
dj tuchler
RRS
On 08/02/05 10:33 PM, Dennis J. Tuchler
Occasionally, I find I have two-word directories, that is, directories with two-word names, where there is a space between the words. I have tried every combination possible (I think) using "cd", and can't get into the directory from the command line. How do I get into such a directory?
well if your directory name is "some thing/" you can do cd some\ thing/ alternatively you can use tab completion. Regards, Ben
participants (6)
-
Amanda B Hickman
-
Ben Higginbottom
-
Dennis J. Tuchler
-
devosc
-
Dylan
-
Randall R Schulz